fix: required template params incorrectly reject falsy values#2033
fix: required template params incorrectly reject falsy values#2033sahillllllllll-bit wants to merge 1 commit intoasyncapi:masterfrom
Conversation
|
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.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughFixed required parameter validation in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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
false,0,'') as missing.!templateParams[key]) with a strict undefined check (templateParams[key] === undefined).undefined) are flagged, while valid falsy inputs are accepted.Related issue(s)
Fixes #2008
Summary by CodeRabbit
null,false,0,'') as valid parameter inputs instead of treating them as missing.