Fork me on GitHub
#ring-swagger
<
2018-03-20
>
ikitommi05:03:40

@jmckitrick The endpoint-macros produce code for the endpoint and the order of things defined might matter. You can call

(macroexpand-1 `(GET "/auth" [] :query-params [x :- Long] {:status 200, :body {:x x}})
to see what get’s generated.

jmckitrick15:03:00

Ok, that makes sense.

jmckitrick15:03:27

How difficult would it be to use expound messages for spec failures during validation and coercion?

ikitommi15:03:51

Shoudn't be hard, as it only interprets the :problems. But... It returns one mega-string.

ikitommi15:03:08

return that to clients?

ikitommi15:03:58

or let clients use expound as the :problems go over the wire already. Well, mostly. Can't serialize function refs

jmckitrick18:03:46

I have a question about documentation. For the Authentication and Authorization section, what should go there, besides what would apply to base compojure? What points should be covered?