-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exploded query parameters with array property
- Loading branch information
1 parent
0291682
commit efe84ca
Showing
3 changed files
with
111 additions
and
42 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
41 changes: 41 additions & 0 deletions
41
modules/openapi-generator/src/test/resources/3_0/exploded-query-param-array.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Exploded query param array | ||
description: "Exploded query params" | ||
version: "1.0.0" | ||
servers: | ||
- url: localhost:8080 | ||
paths: | ||
/api: | ||
get: | ||
operationId: GetSomeValue | ||
parameters: | ||
- in: query | ||
name: QueryObject | ||
explode: true | ||
style: form | ||
schema: | ||
type: object | ||
properties: | ||
values: | ||
type: array | ||
items: | ||
type: string | ||
responses: | ||
'200': | ||
description: Some return value | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/SomeReturnValue' | ||
example: | ||
someValue: value | ||
components: | ||
schemas: | ||
SomeReturnValue: | ||
type: object | ||
required: | ||
- someValue | ||
properties: | ||
someValue: | ||
type: string |