Skip to content

Commit 9ae0c35

Browse files
Add endpoints with query parameters that require Json-serialization
1 parent 6ff9e67 commit 9ae0c35

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

modules/openapi-generator/src/test/resources/3_0/echo_api.yaml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,37 @@ paths:
457457
explode: true #default
458458
schema:
459459
allOf:
460-
- $ref: '#/components/schemas/Bird'
461-
- $ref: '#/components/schemas/Category'
460+
- $ref: '#/components/schemas/Bird'
461+
- $ref: '#/components/schemas/Category'
462+
responses:
463+
'200':
464+
description: Successful operation
465+
content:
466+
text/plain:
467+
schema:
468+
type: string
469+
/query/style_jsonSerialization/object:
470+
get:
471+
tags:
472+
- query
473+
summary: Test query parameter(s)
474+
description: Test query parameter(s)
475+
operationId: test/query/style_jsonSerialization/object
476+
parameters:
477+
- in: query
478+
name: json_serialized_object_ref_string_query
479+
content:
480+
application/json:
481+
schema:
482+
$ref: '#/components/schemas/Pet'
483+
- in: query
484+
name: json_serialized_object_array_ref_string_query
485+
content:
486+
application/json:
487+
schema:
488+
type: array
489+
items:
490+
$ref: '#/components/schemas/Pet'
462491
responses:
463492
'200':
464493
description: Successful operation

0 commit comments

Comments
 (0)