Fork me on GitHub
#kekkonen
<
2016-08-29
>
ikitommi14:08:47

@vijayakkineni the response coercion is on by default. Hmm.. at least defining the exact response code, it should work,so:

(defnk ^:command echo-pizza
  "Echoes a pizza"
  {:responses {cqrs/success-status {:schema Pizza}}}
  [data :- Pizza]
  (cqrs/success {:a 1}))

ikitommi14:08:17

if the :default does not run response coercion, please write an issue to github, will fix that then.

vijayakkineni14:08:57

@ikitommi cqrs/success-status works. Will open an issue on github for the :default response coercion