Fork me on GitHub
#ring-swagger
<
2023-06-07
>
djm08:06:08

If I’m using compojure-api, and I have something like:

(POST /foo []
  :body [bar (make-schema baz)])
Is there a way of specifying a name for the body? (So that I don’t end up with Body24850 in swagger). Maybe something with description or field from ring.swagger.schema? They both talk about metadata, but I couldn’t find anything more specific.

djm11:06:41

I got it working by setting :name and :ns metadata (it didn’t work with just :name).