fix: Handle class name prefix correctly in GraphQL parser#2926
fix: Handle class name prefix correctly in GraphQL parser#2926koxudaxi merged 4 commits intokoxudaxi:mainfrom
Conversation
📝 WalkthroughWalkthroughThis PR fixes a bug where GraphQL scalar type mappings fail when using the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code graph analysis (5)tests/data/expected/parser/graphql/union_with_prefix.py (1)
src/datamodel_code_generator/model/scalar.py (2)
src/datamodel_code_generator/parser/graphql.py (2)
tests/data/expected/main/graphql/simple_star_wars_class_name_prefix.py (3)
tests/main/graphql/test_main_graphql.py (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (6)
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 #2926 will not alter performanceComparing
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2926 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 93 93
Lines 16913 16917 +4
Branches 1966 1966
=========================================
+ Hits 16913 16917 +4
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.52.2 This PR is now available in the latest release. See the release notes for details. |
Summary
Fixes: #2923 #2925
Summary by CodeRabbit
New Features
--class-name-prefixoption for GraphQL code generation, allowing customizable prefixes on generated Python classes and scalar types.Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.