Conversation
📝 WalkthroughWalkthroughThe changes fix a bug where pattern constraints on JSON schema dictionary keys (patternProperties and propertyNames) were not being preserved when using the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
No actionable comments were generated in the recent review. 🎉 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2994 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 94 94
Lines 18051 18065 +14
Branches 2091 2090 -1
=========================================
+ Hits 18051 18065 +14
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:
|
Breaking Change AnalysisResult: No breaking changes detected Reasoning: This PR is a bug fix that corrects inconsistent behavior where patternProperties and propertyNames constraints were incorrectly dropped when using --field-constraints or --use-annotated flags. Before the fix, dict[str, Bar] was incorrectly generated; after the fix, dict[constr(regex=...), Bar] is correctly generated. While this changes the generated output, it's a correctness fix rather than a breaking change - the previous behavior was a bug that silently dropped constraints that should have been preserved according to the JSON Schema. Users expecting the buggy behavior would see different output, but the new output correctly reflects what the schema specifies. This analysis was performed by Claude Code Action |
|
🎉 Released in 0.54.0 This PR is now available in the latest release. See the release notes for details. |
Fixes: #2988
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Tests