Fork me on GitHub
#yada
<
2016-10-28
>
vijayakkineni13:10:04

Hello All, How can i enforce a schema on the response from a resource?

malcolmsparks16:10:34

You could do it 2 ways - either in your response function, or as an interceptor that you add to the default interceptor chain.

malcolmsparks16:10:05

If this doesn't make sense, please feel free to ask questions and I can point you to more docs

vijayakkineni17:10:05

@malcolmsparks thanks for getting back, that will work. I was also interested in displaying the response schema in swagger like how request schema ends up in this case

(defschema Transaction {}) {:methods :post {:parameters {:body Transaction}}}