-
-
Notifications
You must be signed in to change notification settings - Fork 342
feat: add validation and descriptive errors to QueryParamsVariables #1785
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
base: master
Are you sure you want to change the base?
feat: add validation and descriptive errors to QueryParamsVariables #1785
Conversation
implemented proper validation and descriptive error messages in one component (`QueryParamsVariables`) to demonstrate the proposed error-handling pattern. Previously, unsupported `language` or `framework` values would cause deep runtime failures.
|
What reviewer looks at during PR reviewThe following are ideal points maintainers look for during review. Reviewing these points yourself beforehand can help streamline the review process and reduce time to merge.
|
WalkthroughThis PR enhances the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Description
This PR introduces the first step toward a consistent error-handling pattern inside
@asyncapi/generator-components.Implemented proper validation and clear error messages in the
QueryParamsVariablescomponent.Previously, unsupported
languageorframeworkvalues resulted in deep runtime failures or confusing stack traces.With this update, the component now fails early with descriptive and actionable errors, improving the developer experience for template authors.
This PR serves as a demonstration of the proposed error-handling approach that can be extended to the rest of the components.
Issue-: #1712
Related issue(s)
See also: Issue: #1712
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.