Add support for multiple aliases using Pydantic v2 AliasChoices#2845
Add support for multiple aliases using Pydantic v2 AliasChoices#2845
Conversation
|
Warning Rate limit exceeded@koxudaxi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 0 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⛔ Files ignored due to path filters (10)
📒 Files selected for processing (19)
✨ 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 |
|
📚 Docs Preview: https://pr-2845.datamodel-code-generator.pages.dev |
CodSpeed Performance ReportMerging #2845 will not alter performanceComparing
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2845 +/- ##
==========================================
- Coverage 99.51% 99.50% -0.02%
==========================================
Files 90 90
Lines 14258 14479 +221
Branches 1695 1735 +40
==========================================
+ Hits 14189 14407 +218
Misses 37 37
- Partials 32 35 +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:
|
Breaking Change AnalysisResult: No breaking changes detected Reasoning: This PR adds support for multiple aliases using Pydantic v2 AliasChoices as an additive feature. Analysis: (1) CLI/API: The --aliases option now accepts both string values (existing) and list of strings (new), which is backward compatible - existing alias files continue to work. (2) Code Generation: Generated code only changes when users explicitly opt-in to the new list format for aliases. Existing single-alias configurations produce identical output. (3) Internal API: While This analysis was performed by Claude Code Action |
|
🎉 Released in 0.51.0 This PR is now available in the latest release. See the release notes for details. |
Fixes: #2474