Skip to content

Commit 7d9e385

Browse files
committed
objectQueryParam.yaml: Add both required and not required object query params for testing
1 parent 89eea74 commit 7d9e385

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

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

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ paths:
1414
parameters:
1515
- in: query
1616
name: pageQuery
17+
required: true
1718
schema:
1819
type: object
1920
properties:
@@ -22,4 +23,33 @@ paths:
2223
format: int32
2324
limit:
2425
type: integer
25-
format: int32
26+
format: int32
27+
- in: query
28+
name: notRequired
29+
required: false
30+
schema:
31+
type: object
32+
properties:
33+
foobar:
34+
type: integer
35+
format: int32
36+
37+
- in: query
38+
name: pageQuerySchema
39+
required: true
40+
schema:
41+
$ref: '#/components/schemas/Page'
42+
responses:
43+
'200':
44+
description: OK
45+
components:
46+
schemas:
47+
Page:
48+
type: object
49+
properties:
50+
spage:
51+
type: integer
52+
format: int32
53+
sperPage:
54+
type: integer
55+
format: int32

0 commit comments

Comments
 (0)