What is the recommended way to force a query string array parameter to be treated with style form and explode false #2248
Labels
help-wanted
A change up for grabs for contributions from the community
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 anIEnumerable<string>
, to show up correctly in the generated Swagger. According to the specs it should getstyle=form
andexplode=false
. The default here (style=form
andexplode=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.
The text was updated successfully, but these errors were encountered: