-
-
Notifications
You must be signed in to change notification settings - Fork 195
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: improve validation-error.ts
file
#178
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.
validation-error.ts
file
@peter-rr It is true we have |
@derberg I've checked my changes and I'm getting the following error when running
Does the |
yes, exactly,
I'm just thinking now, if we could add some test 🤔 might be that in future someone else gets into this file and tries to change things as you suggested 🤔 or maybe you could add just extensive comments to the code? |
Hey @derberg
🤔 I think we'd be adding just one more condition to the current code and it seems self-explanatory to avoid adding extensive comments. What do you think? |
sounds good to me, the conditions
yeah, I suggest not going into the trap of |
Yeah, you're right! Ok, then I'll add a brief comment above those conditions 👌 |
@derberg Ready to be reviewed ^^ |
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.
Thanks 🚀
@peter-rr have a look at failing linter |
@derberg No more code smells now 💪 |
@peter-rr sorry for being kinda picky, but the comment that you added describe what is already visible in the |
Kudos, SonarCloud Quality Gate passed!
|
@derberg Sure, it does make sense! No worries, actually I appreciate so much this kind of corrections 🙏 They are really helpful to me 💪📚 I already pushed the correction suggested, so tell me if anything wrong or not clear enough yet :) |
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.
Well done 👏🏼
validation-error.ts
filevalidation-error.ts
file
/rtm |
🎉 This PR is included in version 0.13.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@all-contributors please add @peter-rr for code |
I've put up a pull request to add @peter-rr! 🎉 |
Description
Related issue(s)
convert
command #41