-
Notifications
You must be signed in to change notification settings - Fork 37
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
Which content type to prefer for swagger docs? #13
Comments
Highest precedence sounds good (or first). I think this will be a corner case. I've never come across an API that returned both JSON and FormUrlEncoded data (although I have seen (X)HTML and JSON). |
There are APIs returning JSON, YAML and EDN... |
…aults Prefer gundeck's default for nativeEncrypt
Hi, Thanks in advance! |
Suppose this API:
Should we use a
body
param with Swagger Schema orformData
params?With swagger spec it does not seem to make sense having both.
It also appears we can't have duplicate paths with different params.
I tend to think that we should just pick the first content type of the list (if any).
The other option might be to pick one of the most precedence (e.g. prefer
JSON
thenFormUrlEncoded
).The text was updated successfully, but these errors were encountered: