Repository navigation
Type users of unmodelled mapped and x-python-import refs by import - #6791
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis 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 degrade performance by 16.23%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Breaking Change AnalysisResult: No breaking changes detected Reasoning: The PR fixes a crash. Before, an allOf that combines a mapped external ref (from --external-ref-mapping) or an x-python-import definition with keywords that add no field failed with the error A Parser can not resolve classes; now it is typed by the import. The source changes are all private methods of JsonSchemaParser. One new hook, _type_imported_references_without_model, replaces _reject_mapped_references_without_schema and keeps the same SchemaParseError for a mapped ref whose fragment names no schema. The other new helpers are _python_import_type_maker, _type_users_by, _has_reference_users and the _unshared_imports context manager, which the existing stand-in parse now reuses. No public Python name, CLI option, default value or template is removed or changed, and the release baseline lists no new surfaces. For the inputs this PR touches, the behaviour diff gate classifies the default-output cells as crash-fix, including the new python_import_all_of_keywords input. The accepted cells are about writing patterns that contain a single quote, which this diff does not touch, so they come from other changes since 0.95.0. The docs changes only describe the newly supported allOf case. Output changes only for schemas that used to fail, so there are no breaking changes. This analysis was produced by the release draft workflow |
|
🎉 Released in 0.96.0 This PR is now available in the latest release. See the release notes for details. |
Fixes: #6772
Fixes: #6786
Summary by CodeRabbit
allOfwhen sibling keywords do not add fields; those keywords are not retained.