-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: add interface Options
, remove pre-validation with Parser
#188
fix: add interface Options
, remove pre-validation with Parser
#188
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.
Initially we decided that bundler would not depend on asyncapi parser #26 can you discuss why benifit we are getting from using for asyncapi-parser.
It appeared that Users also don't always validate the outputted AsyncAPI Document because they used The Official App for bundling; how could it have bundled something improperly? So, practice has shown that In fact, I would prefer to validate the data twice, both input and output, but validating the input wouldn't catch errors in the And if I use the |
If the user needs to validate the specifications, then the user can validate the spec using |
@derberg |
yeah, basically if parser is just used for validation and nothing else, can be removed and just readme should be clear about it, and that if someone needs validation, they should use parser. And as @Souvikns wrote, in CLI we can use existing code to enable validation before bundling |
@asyncapi/parser
and interface Options
Options
Pre-validation with It was never documented; it simply was there for several versions, so I didn't change the |
Options
Parser
Parser
Options
, remove pre-validation with Parser
604c268
to
054b1e9
Compare
Quality Gate passedIssues Measures |
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 🚀
prevalidation with parser is still recommended, it's just that it should be documented and suggested in readme. If someone wants to use bundler on their own, they should also use parser-js and in case of AsyncAPI CLI, bundling should be done with initial validation using parser that is there in CLI already |
I'll address that in a separate README update then. |
/rtm |
🎉 This PR is included in version 0.6.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR:
Bundler
from using custom types to using types from@asyncapi/parser
;Options
to improve DX when working withBundler
's options.