support for (error) response messages

BTW. the swagger + clojure is so nice to use, thanks for making it (and introducing into)!
agree. and the key could be just :responses -> shorter and Swagger 2.0 will
most probably use that instead of :responseMessages.


On Wed, Jul 2, 2014 at 11:46 PM, Juho Teperi <notifications@github.com>
wrote:

> In examples/src/examples/thingie.clj:
>
> > @@ -43,8 +45,13 @@
> >        (POST* "/minus" []
> >          :return      Total
> >          :body-params [x :- Long y :- Long]
> > +        :responseMessages [{:code 400
> > +                            :responseModel ErrorEnvelope}]
>
> Convention is to use lisp-case (aka. kebab-case) instead of camelCase.
>
> I think using map of code-model pairs would look cleaner than vector of
> maps.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/metosin/compojure-api/pull/35/files#r14482542>.
>