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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

the default proposed mime type in swagger-ui.html should be 'application/json' #88

Closed
tloubrieu-jpl opened this issue Feb 7, 2022 · 2 comments
Assignees
Labels
p.should-have requirement the current issue is a requirement s.low Low level severity sprint-backlog

Comments

@tloubrieu-jpl
Copy link
Member

馃挭 Motivation

...so that I can get a structured response by default from the UI.

(currently it is application/csv because of alphabetical order I think)

馃摉 Additional Details

鈿栵笍 Acceptance Criteria

Given a deployed API (eg on http://localhost:8080/)
When I perform select an end-point ,
Then I expect the default proposed content type to be application/json, instead of application/csv on the screenshot
image

@al-niessner
Copy link
Contributor

@tloubrieu-jpl

The actual default is JSON. The display on swaggerhub has nothing to do what the Java does and not sure how order is defined by swaggerhub but it looks to be first typed first in list. However to get Object right, '*' needs to be first in the YAML. Again, we are constrained quite a bit by swagger.

@tloubrieu-jpl
Copy link
Member Author

Now the default type is * and it return application/json, so I am considering this ticket as closed. See PR #254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p.should-have requirement the current issue is a requirement s.low Low level severity sprint-backlog
Projects
None yet
Development

No branches or pull requests

3 participants