Repository navigation
Test schema positions by node instead of parse-path suffixes - #5171
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will improve performance by 12.1%1 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
52872d2 to
77ccefe
Compare
Breaking Change AnalysisResult: No breaking changes detected Reasoning: The PR changes only src/datamodel_code_generator/parser/jsonschema.py and is an internal refactor. The private helper _strip_special_path_suffix is removed. The private attribute _tag_key_variant_paths, which was keyed by joined path strings, is replaced by _tag_key_variants, keyed by the schema object's schema_location. The private method _get_tag_key_variant_key now takes the schema object as well as the path. The private method _is_current_root_schema_path is replaced by _is_current_root_schema, which compares schema locations instead of resolving paths. Every touched symbol is a private parser internal with an underscore prefix. No CLI options, public Python API, templates, default values, supported Python versions or error reporting change. The diff includes no test or expected-output updates, so nothing shows the generated code changing; the change only alters how union-variant tag keys and root self-references are identified internally. This analysis was produced by the release draft workflow |
Summary by CodeRabbit