fix: handle type definitions from grand(grand...) parent schemas#2861
Conversation
update related tests for Entity and Thing schemas
📝 WalkthroughWalkthroughThe pull request refines field type resolution in inheritance chains by improving the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)src/datamodel_code_generator/parser/jsonschema.py (1)
🔇 Additional comments (2)
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 |
CodSpeed Performance ReportMerging #2861 will not alter performanceComparing
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2861 +/- ##
==========================================
+ Coverage 99.50% 99.52% +0.02%
==========================================
Files 90 90
Lines 14869 14941 +72
Branches 1781 1788 +7
==========================================
+ Hits 14795 14870 +75
Misses 38 38
+ Partials 36 33 -3
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:
|
|
🎉 Released in 0.51.0 This PR is now available in the latest release. See the release notes for details. |
Handles the edge case where an array item schema gets annotated in a grand(-grand) child schema, see:
#2087 (comment)
#2087 (comment)
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.