You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set query parameter for array of primitive types (#929)
* Set query parameter for array of primitive types
* Update PR number in changelog
* refactor param_type method to handle array params.
---------
Co-authored-by: Eugene Lim <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
#### Features
4
4
5
5
*[#927](https://github.com/ruby-grape/grape-swagger/pull/927): Set default parameter location based on consumes - [@spaceraccoon](https://github.com/spaceraccoon)
6
+
*[#929](https://github.com/ruby-grape/grape-swagger/pull/929): Set query parameter for array of primitive types - [@spaceraccoon](https://github.com/spaceraccoon)
{'in'=>'formData','name'=>'array_of_strings','type'=>'array','items'=>{'type'=>'string'},'required'=>false,'description'=>'array in csv collection format'}
55
+
{'in'=>'query','name'=>'array_of_strings','type'=>'array','items'=>{'type'=>'string'},'required'=>false,'description'=>'array in csv collection format'}
{'in'=>'formData','name'=>'array_of_strings','type'=>'array','items'=>{'type'=>'string'},'required'=>false,'collectionFormat'=>'multi','description'=>'array in multi collection format'}
70
+
{'in'=>'query','name'=>'array_of_strings','type'=>'array','items'=>{'type'=>'string'},'required'=>false,'collectionFormat'=>'multi','description'=>'array in multi collection format'}
{'in'=>'formData','name'=>'array_of_strings','type'=>'array','items'=>{'type'=>'string'},'required'=>false,'collectionFormat'=>'brackets','description'=>'array in brackets collection format'}
85
+
{'in'=>'query','name'=>'array_of_strings','type'=>'array','items'=>{'type'=>'string'},'required'=>false,'collectionFormat'=>'brackets','description'=>'array in brackets collection format'}
0 commit comments