Skip to content
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

:consumes should be available everywhere :produces is #15

Closed
Frozenlock opened this issue Jun 15, 2015 · 1 comment
Closed

:consumes should be available everywhere :produces is #15

Frozenlock opened this issue Jun 15, 2015 · 1 comment

Comments

@Frozenlock
Copy link
Contributor

By what I can generate for swagger-ui, :consumes is only accepted in the top level option map for swaggered:

(swaggered {:info {:title "Some API"
                   :version "1.0.0"
                   :description "Bla bla bla"}
            :consumes #{....}  ;;  <-----------------
            :basePath "/api/v1"} ...

(A quick scan of the Yada source doesn't reveal anything related to :consumes, as opposed to :produces)

@malcolmsparks
Copy link
Contributor

This is implemented in 1.1 - just needs a final round of testing and documentation, but the essence of this issue has been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants