Skip to content

Commit dd0cf16

Browse files
committed
docs: adds a query example to pass tests
Signed-off-by: Vincent Biret <[email protected]>
1 parent 3fb4d91 commit dd0cf16

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/schema/pass/path-item-object-example.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@ paths:
2323
text/html:
2424
schema:
2525
$ref: '#/components/schemas/ErrorModel'
26+
query:
27+
description: Returns pets based on ID
28+
summary: Find pets by ID
29+
operationId: queryPetsById
30+
responses:
31+
'200':
32+
description: pet response
33+
content:
34+
'*/*':
35+
schema:
36+
type: array
37+
items:
38+
$ref: '#/components/schemas/Pet'
39+
default:
40+
description: error payload
41+
content:
42+
text/html:
43+
schema:
44+
$ref: '#/components/schemas/ErrorModel'
2645
parameters:
2746
- name: id
2847
in: path

0 commit comments

Comments
 (0)