-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Render array/object examples correctly according to style/explode #504
Comments
Thanks for the detailed issue report! This is a good issue for the first PR |
I can't promise I can do anything (I don't have much JS experience), but could you point at the approximate location(s) in the code where changes would be needed? (This will be helpful for anyone else too.) |
Don't worry, maybe someone else may take it up 👍 First step would be to create function in Then this function should be used here for Also |
The same issue applies for |
Parameter examples should render correctly based on the
style
andexplode
fields.For example, consider this parameter definition:
This currently renders like this:
I would expect the example to render like
foo,bar
(also without quotes).A possible workaround would be to write
example: foo,bar
, but this renders as"foo,bar"
with quotes, which is incorrect since it's a query parameter. So there's no workaround I know of to correctly display an example for a query string, except manually writing an example in thedescription
.Further reading: https://swagger.io/docs/specification/serialization
The text was updated successfully, but these errors were encountered: