-
Notifications
You must be signed in to change notification settings - Fork 69
-
I read on the page that 'Arazzo Descriptions can be JSON or YAML values.'
On the documentation page, I saw these two descript
JSON Templated Example
contentType: application/json
payload: |
{
"petOrder": {
"petId": "{$inputs.pet_id}",
"couponCode": "{$inputs.coupon_code}",
"quantity": "{$inputs.quantity}",
"status": "placed",
"complete": false
}
}
JSON Object Example
contentType: application/json
payload:
petOrder:
petId: $inputs.pet_id
couponCode: $inputs.coupon_code
quantity: $inputs.quantity
status: placed
complete: false
`
Which of them apply as a json format for the entire document.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
@jetro4u I'm not quite sure what you're asking, but the format of the Arazzo Description is independent from the format of the API messages. If you just want to convert the examples from YAML to JSON there are online tools that will do that for you.
Beta Was this translation helpful? Give feedback.
All reactions
-
I was not sure which of the two examples above I should use. I will say I prefer the JSON Templated Example. But I want to know if I can use it to define all the field name in arazzo such as sourceDescriptions, components et al.
Beta Was this translation helpful? Give feedback.