-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documenting request body #168
Comments
hi. does the |
Hey! I run into the same problem: no description. Using :body [log (s/named schema/LogEntry "log entry to append")] Also, is it possible to give a name to this "parameter" instead of "Body24502"? |
should be possible. will check this one out. |
Sorry for taking so long. Naming an anonymous body schema: (POST "/some" []
:body [body (s/schema-with-name {:kikka String} "Kikka")]
(ok body)) Adding description to body schema fixed in (POST "/some" []
:body [body (describe {:kikka String} "this is kikka")]
(ok body)) Together: (POST "/some" []
:body [body (describe (s/schema-with-name {:kikka String} "Kikka") "this is kikka")]
(ok body)) After implementing this feature, can add support for more declarative schemas. |
Thanks! |
With compojure-api-0.24.0, specifying documentation for body schema with
for a route does not produce any documentation for body parameter in swagger spec.
The text was updated successfully, but these errors were encountered: