Skip to content

Remove test-only JsonSchemaParser forwarders of allOf and rw-split homes - #6715

Merged
Koudai Aono (koxudaxi) merged 1 commit into
dry-13from
dry-14
Nov 11, 2026
Merged

Koudai Aono (koxudaxi) merged 1 commit into
dry-13from
dry-14

Conversation

@koxudaxi

Copy link
Copy Markdown
Member

No description provided.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ed050a2 and e0fe193.

Files ignored due to path filters: 1

  • docs/llms-full.txt is excluded by none and included by none
Files selected for processing: 5

  • docs/architecture.md
  • src/datamodel_code_generator/parser/_rw_split.py
  • src/datamodel_code_generator/parser/jsonschema.py
  • tests/parser/test_jsonschema.py
  • tests/test_input_model_transport.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T00:21:56.955791Z e0fe193 Draft marked ready
ℹ️ About Codex in GitHub

Your 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.

@github-actions

Copy link
Copy Markdown
Contributor

@codspeed

codspeed Bot commented Nov 11, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 99.83%

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 53 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 53 improved benchmarks
⏩ 98 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_perf_client_calls[async] 49.5 ms 20.8 ms ×2.4
⚡ test_perf_client_calls[sync] 44.1 ms 18.6 ms ×2.4
⚡ test_perf_load_pyproject_config[mapping-multiple] 260.1 µs 114.8 µs ×2.3
⚡ test_perf_graphql_style_pydantic_v2 1,007.2 ms 446 ms ×2.3
⚡ test_perf_load_pyproject_config[mapping-None] 242.2 µs 108.6 µs ×2.2
⚡ test_perf_pydantic_field_name_resolution 2.6 ms 1.2 ms ×2.2
⚡ test_perf_load_pyproject_config[config-multiple] 259 µs 116.9 µs ×2.2
⚡ test_perf_load_pyproject_config[config-None] 236.5 µs 107.3 µs ×2.2
⚡ test_perf_simple_msgspec_unset_field_rendering 598.9 ms 272.3 ms ×2.2
⚡ test_perf_kubernetes_style_pydantic_v2 3.3 s 1.5 s ×2.2
⚡ test_perf_aws_style_openapi_pydantic_v2 2.6 s 1.2 s ×2.2
⚡ test_perf_unique_items_runtime_scalar_validation 3.2 ms 1.5 ms ×2.1
⚡ test_perf_extreme_large_schema 17.2 s 8.1 s ×2.1
⚡ test_perf_complex_refs 2.5 s 1.2 s ×2.1
⚡ test_perf_scalar_root_collapsed_builtin 251.2 ms 120.5 ms ×2.1
⚡ test_perf_duplicate_names 1,199.1 ms 579.7 ms ×2.1
⚡ test_perf_all_options_enabled 7.1 s 3.4 s ×2.1
⚡ test_perf_mapped_reference_users 1,056.6 ms 512.8 ms ×2.1
⚡ test_perf_local_reference_file_resolution 175.8 ms 85.5 ms ×2.1
⚡ test_perf_unique_items_nested_model_validation 3.2 ms 1.6 ms ×2.1
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing dry-14 (e0fe193) with dry-13 (ed050a2)

Open in CodSpeed

Footnotes

  1. 98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@koxudaxi
Koudai Aono (koxudaxi) merged commit 8bc6c71 into main Nov 11, 2026
42 of 144 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: This PR is an internal refactor. It removes thin delegating private methods from JsonSchemaParser and from the RwSplitHost protocol: _get_ref_schema_rw_model_field_facts, _update_data_type_ref_for_variant, _has_inherited_constraints, _get_inherited_field_map, _build_missing_required_field, _is_root_model_schema, _handle_allof_root_model_with_constraints and _object_map_key_type. Their callers now call the matching module-level functions in _rw_split, _inherited_schemas, _all_of_values and _object_maps directly, with the same arguments, so behaviour is unchanged. All removed names start with an underscore, so they are private and not part of the public Python API. No command-line options, public hooks, templates, defaults or Python version support changed. The other changes are a docs reference update for object_map_key_type and the removal of tests that called the deleted private methods. The behaviour diff gate lists only both-fail cells and no accepted or violation cells, so default generated output does not change.


This analysis was produced by the release draft workflow

@github-actions

Copy link
Copy Markdown
Contributor

🎉 Released in 0.93.0

This PR is now available in the latest release. See the release notes for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant