Skip to content

Commit

Permalink
use array for OpenAPI 2.0 example of multi-value query param (#135)
Browse files Browse the repository at this point in the history
removed explicit style: form (already default)
  • Loading branch information
pvdbosch committed Sep 27, 2023
1 parent 33bdd58 commit d529fdd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions guide/src/main/asciidoc/resources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,19 @@ parameters:
- name: embed
in: query
collectionFormat: multi
type: string
enum:
- employees
- mainAddress
type: array
items:
type: string
enum:
- employees
- mainAddress
```
.OpenAPI 3.0 definition
```YAML
parameters:
- name: embed
in: query
style: form
explode: true
schema:
type: array
Expand Down

0 comments on commit d529fdd

Please sign in to comment.