ring-swagger

djm 2023-06-07T08:58:08.633129Z

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.

djm 2023-06-07T11:39:41.456889Z

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