Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move common models in AsyncAPI definitions into shared external files #11

Open
zehnm opened this issue Apr 30, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@zehnm
Copy link
Contributor

zehnm commented Apr 30, 2022

The core and integration APIs share common models which should not be copy pasted all over the place.

Even though the AsyncAPI specification supports external references, the tooling support to handle external references is quite disappointing.
Especially if one is used to the great swagger-cli bundle support with OpenAPI definitions. This puts everything back into one file for all the other tools not able to handle external references.

The AsyncAPI Bundler has serious issues bundling external references. Last time I've checked all reused references were duplicated, instead of being referenced in the final YAML file!

Most likely this issue needs to be fixed first: asyncapi/bundler#34
Otherwise, we have to hack together something, since copying and pasting the shared definitions between the different APIs makes no sense...

@zehnm zehnm added the enhancement New feature or request label Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant