Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why is there no json format in the examples? #217

Unanswered
jetro4u asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

@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.

You must be logged in to vote
1 reply
Comment options

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /