Skip to content

Confusions about OpenAPI, AsyncAPI and Websockets for client SDK #3141

Closed Answered by flaksp
ChristianVaughn asked this question in Q&A
Discussion options

You must be logged in to vote

You can write a specification in your own proprietary format and then convert it to both OpenAPI and AsyncAPI specifications using some script. It should be kinda trivial task since both specs are just large JSONs and they pretty similar. Just pick common things from both specs and then create your own specification format. You may also write your own JSON Schema and define it in $schema keyword which will be nice for IDE autocompletion, and for validation you too — with help of Ajv JSON Schema validator or something similar. It would be useful at least for documentation purposes (rendering a spec as HTML).

You can also create your own proprietary code generation solution. It's not that h…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianVaughn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
OAI-scope http Supporting HTTP features and interactions
3 participants