Should Async API use JSON or YAML for code snippets? #820
Replies: 3 comments 2 replies
-
I did some research on which code format would be better for AsyncAPI spec 3's official documentation. Here I am jotting down my findings -
I will vote for YMAL format mainly because of its readability and comment support. |
Beta Was this translation helpful? Give feedback.
-
I think it is good to provide just YAML, but later in the website, I don't see why wouldn't we in automated way show JSON version too 🤔 but yeah, I don't know anyone who would write JSON by hand really btw, just to confirm, you mean the main AsyncAPI specification document, reference doc? |
Beta Was this translation helpful? Give feedback.
-
@kakabisht, since no votes were received for using JSON only in docs, let's close this discussion. Moving forward, we'll continue to prioritize using YAML code snippets in your gsod work. 😄 |
Beta Was this translation helpful? Give feedback.
-
In AsyncAPI version 3, the code snippets are in both formats. However, using a single format would be more consistent.
Beta Was this translation helpful? Give feedback.
All reactions