-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Accept x-www-form-urlencoded #15
Conversation
Thanks for the PR! Interesting idea. Should it be extended to cover |
You're welcome! Thanks for making an awesome project. form-data would be tough from a formatting perspective (meaning, the example could get LONG). I needed this particular change to document an asp.net api that accepts parameters through the built-in params collection that can accept form-data or x-www-form-urlencoded. I suspect there are very few apis that accept form-data and NOT x-www-form-urlencoded so not sure the extra effort is worth it. |
@joeflateau So this change is only where a schema is defined for a I'm slightly confused by where you mention
Could you possibly share a snippet of the API definition either here or in a gist? It certainly feels a little niche, but not actually against the OpenAPI 2.0 spec. |
I'm sorry, that was probably worded confusingly. What I'm saying there is that, in ASP.net you can read "form fields" through a collection. eg: |
@joeflateau Just chasing up this so I can test it.
|
@MikeRalphson oh yes, sorry, totally slipped my mind. here you go: https://gist.github.com/joeflateau/cd18db5c6d31cd8aebda47b5583be35b |
@joeflateau Hmm, that swagger definition doesn't seem to be valid according to the specification. Only |
@MikeRalphson seems fine changing https://gist.github.com/joeflateau/8e82bcd346b4a862927f4c641da95020 |
Hmm, I'm still a bit confused and the second sample still isn't valid Swagger 2.0. Is |
Hi @joeflateau - can you try your definition with the latest version? Request body parameters are now handled differently. |
Closing this for now - structured request body parameters should now be displayed better regardless of the produces/consumes used within v2.0 definitions. |
No description provided.