-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
refactor: enable reusability of schemas between versions #468
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
This work is still in progress. I will update the |
Hi @jonaslagoni, The IIFE in the |
It is the entry point for bundling, all references therein is being bundled recursively.
The only changes you would need is something along the lines of; create a function for loadingCommonSchemas, which loops over all the files in the common folder, and adds them to the bundler memory. Similar to how the bindings are added: spec-json-schemas/tools/bundler/index.js Line 44 in 287ed28
Thats it. The rest of the bundler code should function fine after that. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Hi @jonaslagoni, I am sorry for ghosting this PR. I will complete the work on it this weekend. |
Hi @jonaslagoni! Sorry for the delay. This PR is ready for review now! |
@jonaslagoni Any updates regarding this PR? |
@devilkiller-ag you need to have the codeowners to look at it ✌️ |
@jonaslagoni Got it✨ |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Hi @smoya, Can you please review this PR again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀🌔
/rtm |
/rtm |
🎉 This PR is included in version 6.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Adding functionality to share these schemas to all versions:
Related issue(s)
Fixes #364