Skip to content

Commit 4cf5168

Browse files
committed
ci: adds a failing test for methods that should be defined on the parent object
Signed-off-by: Vincent Biret <[email protected]>
1 parent 2452ad1 commit 4cf5168

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
openapi: 3.2.0
2+
info:
3+
title: API
4+
version: 1.0.0
5+
paths:
6+
/pets/{id}:
7+
get:
8+
description: Returns pets based on ID
9+
summary: Find pets by ID
10+
operationId: getPetsById
11+
responses:
12+
'200':
13+
description: pet response
14+
content:
15+
'*/*':
16+
schema:
17+
type: array
18+
items:
19+
$ref: '#/components/schemas/Pet'
20+
default:
21+
description: error payload
22+
content:
23+
text/html:
24+
schema:
25+
$ref: '#/components/schemas/ErrorModel'
26+
parameters:
27+
- name: id
28+
in: path
29+
description: ID of pet to use
30+
required: true
31+
schema:
32+
type: array
33+
items:
34+
type: string
35+
style: simple
36+
additionalOperations:
37+
POST:
38+
description: Returns pets based on ID
39+
summary: Find pets by ID
40+
operationId: postPetsById
41+
request-body:
42+
description: ID of pet to use
43+
required: true
44+
content:
45+
application/json:
46+
schema:
47+
type: array
48+
items:
49+
type: string
50+
responses:
51+
'200':
52+
description: pet response
53+
content:
54+
'*/*':
55+
schema:
56+
type: array
57+
items:
58+
$ref: '#/components/schemas/Pet'
59+
default:
60+
description: error payload
61+
content:
62+
text/html:
63+
schema:
64+
$ref: '#/components/schemas/ErrorModel'

0 commit comments

Comments
 (0)