fix: disable per option validation on chat input subcommands#11405
fix: disable per option validation on chat input subcommands#11405kodiakhq[bot] merged 2 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11405 +/- ##
==========================================
+ Coverage 31.61% 32.17% +0.56%
==========================================
Files 387 375 -12
Lines 13995 13722 -273
Branches 1100 1072 -28
==========================================
- Hits 4424 4415 -9
+ Misses 9437 9175 -262
+ Partials 134 132 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR completes the refactoring of validation behavior in chat input command builders by disabling per-option validation for subcommand options, aligning with the pattern established in PR #11304. The change prevents redundant validation passes since parent predicates now validate complete nested structures.
Changes:
- Modified
ChatInputCommandSubcommandGroupBuilder.toJSON()to passfalseinstead ofvalidationOverrideto nested subcommand options - Modified
ChatInputCommandSubcommandBuilder.toJSON()to passfalseinstead ofvalidationOverrideto nested basic options
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📝 WalkthroughWalkthroughModified nested option serialization in chat input command subcommands to always use Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
Disables the double validation on the options, misssed from:
Supercedes #11312
Resolves #11309