Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: issue with not reading spec file in working directory when no global context is created #48
fix: issue with not reading spec file in working directory when no global context is created #48
Changes from 2 commits
91ba5c6
6618993
c57cb86
da6926d
63160a1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
We need to do better here. User, when running
asyncapi validate
most probably do not have an idea about all our options, defaults, and way we load files, priorities - we need to make it clear. Good help messages are a key for good developer experience.how about? 👇🏼
Now, above is just a suggestion of how message should be printed, but from code perspective it should be splitted
Part
Unable to perform validation. Specify what AsyncAPI file should be validated.
should be only in context ofasyncapi validation
and the rest of the message should be reusable. Why reusable? because it will be always used in other commands when the same error will happen that there is no file specified, when we will have commandasyncapi optimize
it will be the same. So you need to make sure that examples that I provided in the message are customizable, in context of validation user seeasyncapi validate --file path/to/file/asyncapi.yml
, but in context of optimization user will seeasyncapi optimize --file path/to/file/asyncapi.yml