Skip to content

Commit 4f47916

Browse files
committed
tests: fixes additional operation test file
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 0520443 commit 4f47916

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

test/Microsoft.OpenApi.Readers.Tests/V32Tests/Samples/OpenApiPathItem/pathItemWithQueryAndAdditionalOperations.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -30,45 +30,45 @@ paths:
3030
type: array
3131
items:
3232
type: object
33-
additionalOperations:
34-
notify:
35-
summary: Notify about pet updates
36-
operationId: notifyPetUpdates
37-
requestBody:
38-
required: true
33+
additionalOperations:
34+
notify:
35+
summary: Notify about pet updates
36+
operationId: notifyPetUpdates
37+
requestBody:
38+
required: true
39+
content:
40+
application/json:
41+
schema:
42+
type: object
43+
properties:
44+
petId:
45+
type: string
46+
event:
47+
type: string
48+
responses:
49+
'200':
50+
description: Notification sent
51+
subscribe:
52+
summary: Subscribe to pet events
53+
operationId: subscribePetEvents
54+
parameters:
55+
- name: events
56+
in: query
57+
description: Event types to subscribe to
58+
schema:
59+
type: array
60+
items:
61+
type: string
62+
responses:
63+
'200':
64+
description: Subscription created
3965
content:
4066
application/json:
4167
schema:
4268
type: object
4369
properties:
44-
petId:
45-
type: string
46-
event:
70+
subscriptionId:
4771
type: string
48-
responses:
49-
'200':
50-
description: Notification sent
51-
subscribe:
52-
summary: Subscribe to pet events
53-
operationId: subscribePetEvents
54-
parameters:
55-
- name: events
56-
in: query
57-
description: Event types to subscribe to
58-
schema:
59-
type: array
60-
items:
61-
type: string
62-
responses:
63-
'200':
64-
description: Subscription created
65-
content:
66-
application/json:
67-
schema:
68-
type: object
69-
properties:
70-
subscriptionId:
71-
type: string
7272
post:
7373
summary: Create pet
7474
operationId: createPet

0 commit comments

Comments
 (0)