Skip to content

Commit 7124e7f

Browse files
committed
Update path-item-object-conflicting-additional-operation.yaml
1 parent 47ab80d commit 7124e7f

File tree

1 file changed

+1
-57
lines changed

1 file changed

+1
-57
lines changed

tests/schema/fail/path-item-object-conflicting-additional-operation.yaml

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,6 @@ info:
44
version: 1.0.0
55
paths:
66
/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-
unexpected: true
27-
parameters:
28-
- name: id
29-
in: path
30-
description: ID of pet to use
31-
required: true
32-
schema:
33-
type: array
34-
items:
35-
type: string
36-
style: simple
377
additionalOperations:
388
POST:
39-
description: Returns pets based on ID
40-
summary: Find pets by ID
41-
operationId: postPetsById
42-
requestBody:
43-
description: ID of pet to use
44-
required: true
45-
content:
46-
application/json:
47-
schema:
48-
type: array
49-
items:
50-
type: string
51-
responses:
52-
'200':
53-
description: pet response
54-
content:
55-
'*/*':
56-
schema:
57-
type: array
58-
items:
59-
$ref: '#/components/schemas/Pet'
60-
default:
61-
description: error payload
62-
content:
63-
text/html:
64-
schema:
65-
$ref: '#/components/schemas/ErrorModel'
9+
description: not allowed, use `post` next to `additionalOperations`

0 commit comments

Comments
 (0)