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

What is the recommended way to force a query string array parameter to be treated with style form and explode false #2248

Open
AroglDarthu opened this issue Oct 13, 2021 · 1 comment
Labels
help-wanted A change up for grabs for contributions from the community

Comments

@AroglDarthu
Copy link

AroglDarthu commented Oct 13, 2021

Sorry to post this question here, but hoping to get a more response than on stackoverlow: https://stackoverflow.com/questions/69287190/what-is-the-recommended-way-to-force-a-query-string-array-parameter-to-be-treate

In short, I'm trying to get a comma-separated parameter (?p=a,b,c,d) that is typed as an IEnumerable<string>, to show up correctly in the generated Swagger. According to the specs it should get style=form and explode=false. The default here (style=form and explode=true) matches the asp.net core default.

Is there an annotation attribute that I can place on the parameter? I cannot find anything in previous issues or in the documentation.

@sibijohn72
Copy link

bump! looking for the same thing.

@martincostello martincostello added the help-wanted A change up for grabs for contributions from the community label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted A change up for grabs for contributions from the community
Projects
None yet
Development

No branches or pull requests

3 participants