cli
cli copied to clipboard
validate command returns 0 exit code when validation error occurs
Describe the bug
It was expected that when a validation error occurs when running the validate command, a non-zero exit code would be used. Instead, it returns 0.
How to Reproduce
> touch asyncapi.yml ; npx @asyncapi/cli validate asyncapi.yml ; echo $? ; rm asyncapi.yml
ValidationError: Document can't be null or falsey.
0
Expected behavior
A non-zero error code would be used.
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup 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.
@peter-rr would you like to have a look at this one? It looks easy to solve :)
@fmvilas Sure! This command is already familiar to me, so let's go for it 💪
Hey @peter-rr ! Not sure if you got the chance to get around this :)
@TamimiGitHub PR is almost merged 😉 https://github.com/asyncapi/cli/pull/288
:tada: This issue has been resolved in version 0.24.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket: