forked from rswag/rswag
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow OpenAPI 3.0 array query parameter schema (rswag#317)
In OpenAPI 3.0, a query parameter can be specified like: ``` name: id in: query schema: type: array items: type: string ``` see: https://swagger.io/specification/#parameter-object In order to support generating the correct OpenAPI 3.0 specification and to still allow rswag specs to pass, this checks to see if `array` is specified in the `type` of the parameter, or if it's specified in the `schema: { type:` instead. re: rswag#317
- Loading branch information
diachini
authored and
Imran Iqbal
committed
Aug 27, 2020
1 parent
44a6150
commit 1b81862
Showing
2 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters