-
-
Notifications
You must be signed in to change notification settings - Fork 164
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: make sure validation of invalid document exits 1
#877
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.
1
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
src/commands/validate.ts
Outdated
await validate(this, specFile, flags); | ||
if(await validate(this, specFile, flags) == ValidationStatus.Invalid) { |
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.
actually why validate twice?
also this.exit(0)
is not really necessary
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.
@derberg changed it
@shawakash there are some lint issues. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@Souvikns fixed the lint issue |
We can close it, but this PR adds some refactoring, that we can use. |
@Souvikns @shawakash |
there are conflicts so I suggest you @peter-rr to open separate PR with refactor |
Description
Related issue(s)
Resolves #861