Skip to content

Commit 39241bd

Browse files
committed
Update Petstore sample file
1 parent 8086474 commit 39241bd

File tree

1 file changed

+16
-29
lines changed

1 file changed

+16
-29
lines changed

src/test/resources/1.0.0/pet-coupons.workflow.yaml

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ workflows:
4747
workflowId: place-order
4848
parameters:
4949
- name: pet_id
50-
in: body
5150
value: $steps.find-pet.outputs.my_pet_id
5251
- name: coupon_code
53-
in: body
5452
value: $steps.find-coupons.outputs.my_coupon_code
5553
successCriteria:
5654
- condition: $statusCode == 200
@@ -72,9 +70,9 @@ workflows:
7270
- name: status
7371
in: query
7472
value: "available"
75-
- $ref: '#/components/parameters/page'
73+
- name: $components.parameters.page
7674
value: 1
77-
- $ref: '#/components/parameters/pageSize'
75+
- name: $components.parameters.pageSize
7876
value: 10
7977
successCriteria:
8078
- condition: $statusCode == 200
@@ -84,7 +82,6 @@ workflows:
8482
workflowId: place-order
8583
parameters:
8684
- name: pet_id
87-
in: body
8885
value: $steps.find-pet.outputs.my_pet_id
8986
successCriteria:
9087
- condition: $statusCode == 200
@@ -113,26 +110,14 @@ workflows:
113110
steps:
114111
- stepId: place-order
115112
operationId: placeOrder
116-
parameters:
117-
- name: pet_id
118-
in: body
119-
target: /petId
120-
value: $inputs.pet_id
121-
- name: coupon_code
122-
in: body
123-
target: /couponCode
124-
value: $inputs.coupon_code
125-
- name: quantity
126-
in: body
127-
value: $inputs.quantity
128-
- name: status
129-
in: body
130-
target: /status
131-
value: "placed"
132-
- name: complete
133-
in: body
134-
target: /complete
135-
value: false
113+
requestBody:
114+
contentType: application/json
115+
payload:
116+
petId: $inputs.pet_id
117+
quantity: $inputs.quantity
118+
couponCode: $inputs.coupon_code
119+
status: placed
120+
complete: false
136121
successCriteria:
137122
- condition: $statusCode == 200
138123
outputs:
@@ -161,8 +146,10 @@ components:
161146
description: Indicates the domain name of the store where the customer is browsing or buying pets, e.g. "pets.example.com" or "pets.example.co.uk".
162147
parameters:
163148
page:
164-
type: integer
165-
format: int32
149+
name: page
150+
in: query
151+
value: 1
166152
pageSize:
167-
type: integer
168-
format: int32
153+
name: pageSize
154+
in: query
155+
value: 100

0 commit comments

Comments
 (0)