We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9df7c7 commit 928d934Copy full SHA for 928d934
README.md
@@ -481,6 +481,30 @@ end
481
}
482
```
483
484
+#### Array type
485
+
486
+If you want to pass an array of primitive types, you can do this with the following:
487
488
+```ruby
489
+params do
490
+ requires :action_ids, type: Array[Integer]
491
+end
492
+post :act do
493
+ ...
494
495
+```
496
497
+```json
498
+{
499
+ "in": "formData",
500
+ "name": "action_ids",
501
+ "type": "array",
502
+ "items": {
503
+ "type": "integer"
504
+ },
505
+ "required": true
506
+}
507
508
509
#### Multi types
510
0 commit comments