-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
feat: show warning for wrong spelled params #350
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.
Great feature! 👏 I just left a minor comment.
Suggestion: It would be amazing if it could show something like "Did you mean..."
Shouldn't be hard leveraging the Levenshtein algorithm: https://www.npmjs.com/package/levenshtein-edit-distance.
Co-authored-by: Fran Méndez <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I hope you wouldn't mind if i'll create a separate issue for it? |
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.
Absolutely. No need to do it now :)
Created #351 |
🎉 This PR is included in version 0.48.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Example:
ag asyncapi.yaml @asyncapi/html-template -p baseHef=/doc -o output Warning: This template doesn't have following params: baseHef.
Related issue(s)
Resolves: #345