feat: Add --use-status-code-in-response-name option#2688
Conversation
…tatus code in response model names
WalkthroughThe pull request introduces a new CLI flag Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (11)
🧰 Additional context used🧬 Code graph analysis (3)src/datamodel_code_generator/parser/openapi.py (2)
tests/data/expected/main/openapi/use_status_code_in_response_name.py (1)
tests/main/openapi/test_main_openapi.py (1)
🪛 Checkov (3.2.334)tests/data/openapi/use_status_code_in_response_name.yaml[high] 1-42: Ensure that the global security field has rules defined (CKV_OPENAPI_4) [high] 1-42: Ensure that security operations is not empty. (CKV_OPENAPI_5) ⏰ 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). (2)
🔇 Additional comments (16)
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 |
🤖 Generated by GitHub Actions
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2688 +/- ##
=======================================
Coverage 99.53% 99.53%
=======================================
Files 81 81
Lines 11358 11366 +8
Branches 1357 1357
=======================================
+ Hits 11305 11313 +8
Misses 32 32
Partials 21 21
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:
|
CodSpeed Performance ReportMerging #2688 will not alter performanceComparing Summary
Footnotes
|
Closes: #1828
Summary by CodeRabbit
Release Notes
New Features
--use-status-code-in-response-nameCLI option (OpenAPI-only) to automatically include HTTP status codes in generated response model names (e.g., ResourceGetResponse200).Documentation
✏️ Tip: You can customize this high-level summary in your review settings.