Skip to content

Drop the expected-path arguments of the OpenAPI tests - #7269

Merged
Koudai Aono (koxudaxi) merged 2 commits into
mainfrom
drop-expected-paths-b5
Nov 21, 2026
Merged

Koudai Aono (koxudaxi) merged 2 commits into
mainfrom
drop-expected-paths-b5

Conversation

@koxudaxi

@koxudaxi Koudai Aono (koxudaxi) commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes

    • Corrected OpenAPI model generation for schemas with optional or unrestricted values, including discriminator cases and nullable map values.
    • Improved generated output consistency across command-line and API generation modes.
  • Tests

    • Expanded and refreshed OpenAPI regression coverage and expected-output snapshots for schema parsing, generated models, and output formats.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 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-21T06:04:53.052227Z aaa3d09 PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates OpenAPI test assertions and snapshot references, adds expected generated-output fixtures, and adjusts related regression tests, preset snapshots, and a documentation example path.

Changes: OpenAPI test and snapshot updates

Layer / File(s) Summary
Generated OpenAPI output fixtures
tests/data/expected/main/openapi/main_openapi/*
Expected outputs add generated Pydantic models, root models, enums, modular imports, and file metadata for covered OpenAPI cases.
OpenAPI test assertion updates
tests/main/openapi/test_main_openapi.py
Tests remove many direct expected-file comparisons, use output suffixes or named artifacts in selected cases, and update selected snapshot paths.
Discriminator and output-mode assertions
tests/main/openapi/test_main_openapi.py
Discriminator, external-reference, and API-scope tests adjust assertions for generated output, payloads, warnings, stdout, stderr, and output state.
OpenAPI snapshot reference updates
tests/main/openapi/test_main_openapi.refs
References point to the main OpenAPI fixture layout and add or separate snapshots for selected cases.
Related regression tests and output paths
scripts/build_docs_examples.py, tests/main/openapi/*, tests/test_format.py
Regression and preset tests adjust output assertions or snapshot references. The documentation example and formatting exclusions use corresponding output paths.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Merge Risk: Minimal · previous review aaa3d

This change reorganizes OpenAPI test snapshots and expected-output fixtures and drops redundant expected-path arguments. It does not alter production behavior, and the checked snapshot paths resolve correctly, so merge-readiness risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Drop the expected-path arguments of the OpenAPI tests" matches the PR objective of removing expected-path arguments from the OpenAPI tests. The raw summary confirms the test files no longer…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Drop the expected-path arguments of the OpenAPI tests" matches the PR objective of removing expected-path arguments from the OpenAPI tests. The raw summary confirms the test files no longer define or pass expected-output directories or fixture paths (for example, test_collapsed_root_models_regression.py, test_reference_hashing_regression.py, test_special_field_prefix_regression.py, and test_open_enums.py). It also shows the test files moving to named-output and assert_output helpers. The title is specific, concise, and describes the primary change. The title does not mention the many regenerated fixture files, but that detail is expected to be omitted.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 075b593 and aaa3d09.

Files ignored due to path filters: 32

  • docs/data/migration/unreleased/drop-expected-paths-b5.toml is excluded by none and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_constructor_order[msgspec].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[affix-direct-affix-options3-kind-PrePetSuffix-api].cat.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[affix-direct-affix-options3-kind-PrePetSuffix-api].dog.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[affix-direct-affix-options3-kind-PrePetSuffix-api].runtime.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[serialization-direct-scoped-options9-kind-Pet-api].cat.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[serialization-direct-scoped-options9-kind-Pet-api].dog.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision-wire_collision-wire_collision-options10-kind-Pet-api].cat_ordinary.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision-wire_collision-wire_collision-options10-kind-Pet-api].dog_ordinary.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision-wire_collision-wire_collision-options10-kind-Pet-api].runtime.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision-wire_collision-wire_collision-options10-kind-Pet-api].schema.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_const-wire_collision_const-wire~a6a51e72.runtime.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_global_nullable-wire_collision_~904e5b4f.schema.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_serialization-wire_collision-wi~3e0ca533.cat_ordinary.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_serialization-wire_collision-wi~3e0ca533.dog_ordinary.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/discriminator_msgspec_default[shared-variants].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[bare-api].cat.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[bare-api].dog.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[empty-api].cat.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[empty-api].dog.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[external-api].cat.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[external-api].dog.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[many_ordinary-api].ordinary.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[scoped-api].cat.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_base[scoped-api].dog.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/main_custom_file_header_with_docstring_and_import[True].model/api.yaml is excluded by !tests/data/**/*.yaml and included by none
  • tests/data/expected/main/openapi/main_openapi/main_invalid_dotted_schema_name_json_stdout.stdout.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[inherited].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[openapi-30].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[openapi-31].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/openapi/reference_hashing_regression/reused_inherited_bases[schemas-api-cli] is excluded by none and included by none
  • tests/data/expected/main/openapi/reference_hashing_regression/reused_inherited_bases[schemas-api-generate] is excluded by none and included by none
Files selected for processing: 187

  • scripts/build_docs_examples.py
  • tests/data/expected/main/openapi/collapsed_root_models_regression/collapsed_tree_reuse_partial[schemas-api]/__init__.py
  • tests/data/expected/main/openapi/collapsed_root_models_regression/collapsed_tree_reuse_partial[schemas-api]/shared.py
  • tests/data/expected/main/openapi/main_openapi/allof_boolean_member.py
  • tests/data/expected/main/openapi/main_openapi/allof_single_ref_inline.py
  • tests/data/expected/main/openapi/main_openapi/allof_with_required_inherited_comprehensive.py
  • tests/data/expected/main/openapi/main_openapi/api_scope_external_boolean_schema.py
  • tests/data/expected/main/openapi/main_openapi/binary_request_body_pattern_warning[accepted].py
  • tests/data/expected/main/openapi/main_openapi/binary_request_body_pattern_warning[lookaround].py
  • tests/data/expected/main/openapi/main_openapi/binary_request_body_pattern_warning[refused-target-2.14].py
  • tests/data/expected/main/openapi/main_openapi/binary_request_body_pattern_warning[refused].py
  • tests/data/expected/main/openapi/main_openapi/collapse_root_models_parent_wrapper_referenced_twice[dataclasses.dataclass].py
  • tests/data/expected/main/openapi/main_openapi/collapse_root_models_parent_wrapper_referenced_twice[typing.TypedDict].py
  • tests/data/expected/main/openapi/main_openapi/custom_template_dir_include_override.stdout.py
  • tests/data/expected/main/openapi/main_openapi/disable_timestamp.py
  • tests/data/expected/main/openapi/main_openapi/discriminated_oneof_allof_cycle.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_beside_a_variant_that_admits_any_value.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_constructor_order[dataclass].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_constructor_order[msgspec-tagged-unions].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_constructor_order[msgspec].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_field_aliases_msgspec[fields-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_field_aliases_msgspec[tagged-unions-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[affix-direct-affix-options3-kind-PrePetSuffix-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[collision-collision-collision-options8-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[global-direct-global-options1-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[inherited-inherited-inherited-options5-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[missing-missing-scoped-options6-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[none-direct-none-options0-petType-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[nullable-nullable-scoped-options7-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[scoped-direct-scoped-options2-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[serialization-direct-scoped-options9-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[snake-direct-none-options4-pet_type-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision-wire_collision-wire_collision-options10-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_const-wire_collision_const-wire_collision-options12-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_enum-wire_collision_enum-wire_collision-options11-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_global-wire_collision-wire_collision_global-options17-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_global_const-wire_collision_con~033b5388.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_global_enum-wire_collision_enum~995e0222.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_global_inherited-wire_collision~114424fc.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_global_missing-wire_collision_m~e6c5b3b7.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_global_nullable-wire_collision_~904e5b4f.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_inherited-wire_collision_inheri~14bb1575.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_nullable-wire_collision_nullabl~9c0025a9.py
  • tests/data/expected/main/openapi/main_openapi/discriminator_final_field_aliases[wire_collision_serialization-wire_collision-wire_collision-options15-kind-Pet-api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_inherited_msgspec_untagged[api].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_msgspec_default[fields].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_msgspec_default[shared-variants].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal-pydantic_v2.BaseModel-optional_args0].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal-pydantic_v2.dataclass-optional_args1].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal_nested-dataclasses.dataclass-optional_args5].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal_nested-pydantic_v2.BaseModel-optional_args2].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal_nested-pydantic_v2.BaseModel-optional_args3].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal_nested-pydantic_v2.BaseModel-optional_args4].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal_nested-pydantic_v2.BaseModel-optional_args6].py
  • tests/data/expected/main/openapi/main_openapi/discriminator_optional_literal[discriminator_optional_literal_nested-pydantic_v2.dataclass-optional_args7].py
  • tests/data/expected/main/openapi/main_openapi/enum_models_as_literal.py
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_multiple_inputs[formatters0-api]/__init__.py
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_multiple_inputs[formatters0-api]/a.py
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_multiple_inputs[formatters0-api]/b.py
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_parent_load_order[child_first-api].py
  • tests/data/expected/main/openapi/main_openapi/external_discriminator_parent_load_order[parent_first-api].py
  • tests/data/expected/main/openapi/main_openapi/external_ref_mapping_absolute_path_ref.py
  • tests/data/expected/main/openapi/main_openapi/external_ref_mapping_file_uri.py
  • tests/data/expected/main/openapi/main_openapi/external_ref_mapping_local_ref_unchanged.py
  • tests/data/expected/main/openapi/main_openapi/external_ref_mapping_normalizes_imported_class_name.py
  • tests/data/expected/main/openapi/main_openapi/external_ref_mapping_without_flag_generates_classes.py
  • tests/data/expected/main/openapi/main_openapi/force_optional.py
  • tests/data/expected/main/openapi/main_openapi/generate_invalid_dotted_retry_preserves_relative_ref_base[mapping].py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/__init__.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/_internal.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/bar.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/collections.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/foo/__init__.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/foo/bar.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/models.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/nested/__init__.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/nested/foo.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/woo/__init__.py
  • tests/data/expected/main/openapi/main_openapi/include_info_version_modular/woo/boo.py
  • tests/data/expected/main/openapi/main_openapi/item_schema_beside_null_schema[api].py
  • tests/data/expected/main/openapi/main_openapi/item_schema_beside_null_schema[paths-and-request-bodies].py
  • tests/data/expected/main/openapi/main_openapi/json_pointer_through_scalar.py
  • tests/data/expected/main/openapi/main_openapi/main_allof_enum_ref.py
  • tests/data/expected/main/openapi/main_openapi/main_collapse_root_models.py
  • tests/data/expected/main/openapi/main_openapi/main_collapse_root_models_field_constraints.py
  • tests/data/expected/main/openapi/main_openapi/main_collapse_root_models_with_references_to_flat_types.py
  • tests/data/expected/main/openapi/main_openapi/main_custom_file_header_with_docstring_and_import[False].model.py
  • tests/data/expected/main/openapi/main_openapi/main_custom_file_header_with_docstring_and_import[True].model/__init__.py
  • tests/data/expected/main/openapi/main_openapi/main_custom_file_header_with_docstring_and_import[True].model/api.py
  • tests/data/expected/main/openapi/main_openapi/main_custom_template_dir_old_style.stdout.py
  • tests/data/expected/main/openapi/main_openapi/main_dataclass.py
  • tests/data/expected/main/openapi/main_openapi/main_dataclass_base_class.py
  • tests/data/expected/main/openapi/main_openapi/main_disable_appending_item_suffix.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/__init__.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/_internal.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/bar.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/collections.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/foo/__init__.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/foo/bar.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/models.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/nested/__init__.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/nested/foo.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/woo/__init__.py
  • tests/data/expected/main/openapi/main_openapi/main_generate_custom_class_name_generator_modular/woo/boo.py
  • tests/data/expected/main/openapi/main_openapi/main_generic_base_preserves_invalid_dotted_modules.stdout.py
  • tests/data/expected/main/openapi/main_openapi/main_http_openapi.py
  • tests/data/expected/main/openapi/main_openapi/main_http_openapi_with_custom_port.py
  • tests/data/expected/main/openapi/main_openapi/main_invalid_dotted_fingerprint_failure_preserves_legacy.stdout.py
  • tests/data/expected/main/openapi/main_openapi/main_multiple_required_any_of.py
  • tests/data/expected/main/openapi/main_openapi/main_nested_enum.py
  • tests/data/expected/main/openapi/main_openapi/main_no_strict_dotted_module_names_from_pyproject_stdout.stdout.py
  • tests/data/expected/main/openapi/main_openapi/main_reuse_model_with_type_alias.py
  • tests/data/expected/main/openapi/main_openapi/main_typed_dict.py
  • tests/data/expected/main/openapi/main_openapi/main_typed_dict_nullable.py
  • tests/data/expected/main/openapi/main_openapi/main_typed_dict_nullable_strict_nullable.py
  • tests/data/expected/main/openapi/main_openapi/main_unrelated_invalid_dotted_model_stdout.stdout.py
  • tests/data/expected/main/openapi/main_openapi/main_unsorted_optional_fields.py
  • tests/data/expected/main/openapi/main_openapi/main_use_default_kwarg.py
  • tests/data/expected/main/openapi/main_openapi/main_with_exclusive.py
  • tests/data/expected/main/openapi/main_openapi/main_with_snake_case_field.py
  • tests/data/expected/main/openapi/main_openapi/main_with_strip_default_none.py
  • tests/data/expected/main/openapi/main_openapi/merge_shared_variant_tags_msgspec.model.py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[both-variants].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[duplicate-name-suffix-in-module].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[first-variant].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[keys-as-written-beside-later-models-of-their-names].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[map-value-takes-released-name].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[name-of-a-deleted-common-part].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[nested-models-of-one-title].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[path-key-needs-the-class-name-key].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[primary-first-late-rename-beside-a-renamed-model].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[primary-first-late-rename].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[read-write-variant-beside-a-renamed-model].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[same-name-documents-with-class-name-prefix].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[same-name-documents].py
  • tests/data/expected/main/openapi/main_openapi/model_name_map_key_of_numbered_name[value-is-another-key].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[inherited-overlap].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[inherited].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[openapi-30-alias].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[openapi-30-set-default-enum-member-alias].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[openapi-30-set-default-enum-member].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[openapi-30].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_nullable_enum[openapi-31].py
  • tests/data/expected/main/openapi/main_openapi/msgspec_tagged_unions_inherited[api].py
  • tests/data/expected/main/openapi/main_openapi/non_operations_and_security.py
  • tests/data/expected/main/openapi/main_openapi/nullable_map_value_dotted_field_keys.py
  • tests/data/expected/main/openapi/main_openapi/nullable_map_value_stdout.stdout.py
  • tests/data/expected/main/openapi/main_openapi/numeric_union_preserves_nullable_warning[api].py
  • tests/data/expected/main/openapi/main_openapi/pyproject.py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_all_reentrant_additional_properties_default.py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_allof_parent_inline_models[dedupe].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_allof_parent_inline_models[default].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_nullable_enum_reference[dedupe].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_nullable_enum_reference[default].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_variant_graph_default[dataclass].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_variant_graph_default[msgspec].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_variant_graph_default[pydantic-v2-dataclass].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_variant_graph_default[pydantic-v2].py
  • tests/data/expected/main/openapi/main_openapi/read_only_write_only_variant_graph_default[typed-dict].py
  • tests/data/expected/main/openapi/main_openapi/ref_merge_parameters.py
  • tests/data/expected/main/openapi/main_openapi/schema_extensions.stdout.py
  • tests/data/expected/main/openapi/main_openapi/schema_extensions_enum.stdout.py
  • tests/data/expected/main/openapi/main_openapi/self_spelled_external_reference.py
  • tests/data/expected/main/openapi/main_openapi/target_python_version_314_no_future_annotations.py
  • tests/data/expected/main/openapi/main_openapi/use_default.py
  • tests/data/expected/main/openapi/main_openapi/use_one_literal_as_default_keeps_nullable.py
  • tests/data/expected/main/openapi/main_openapi/use_tag_as_union_variant_name_parent_prefix[full-path].py
  • tests/data/expected/main/openapi/main_openapi/use_tag_as_union_variant_name_parent_prefix[model-name-map].py
  • tests/data/expected/main/openapi/main_openapi/use_tag_as_union_variant_name_parent_prefix[numbered].py
  • tests/data/expected/main/openapi/main_openapi/use_tag_as_union_variant_name_parent_prefix[use-title-as-name].py
  • tests/data/expected/main/openapi/main_openapi/use_tag_as_union_variant_name_parent_prefix[without-tags].py
  • tests/data/expected/main/openapi/main_openapi/webhooks.py
  • tests/data/expected/main/openapi/main_openapi/webhooks_with_parameters.py
  • tests/data/expected/main/openapi/open_enums/turned_off_in_preset[command-line].model.py
  • tests/data/expected/main/openapi/special_field_prefix_regression/special_field_prefix_discriminator[cli-schemas-api].py
  • tests/data/expected/main/openapi/special_field_prefix_regression/special_field_prefix_discriminator[cli-schemas].py
  • tests/main/openapi/test_collapsed_root_models_regression.py
  • tests/main/openapi/test_collapsed_root_models_regression.refs
  • tests/main/openapi/test_main_openapi.py
  • tests/main/openapi/test_main_openapi.refs
  • tests/main/openapi/test_open_enums.py
  • tests/main/openapi/test_open_enums.refs
  • tests/main/openapi/test_reference_hashing_regression.py
  • tests/main/openapi/test_reference_hashing_regression.refs
  • tests/main/openapi/test_special_field_prefix_regression.py
  • tests/main/openapi/test_special_field_prefix_regression.refs
  • tests/test_format.py
Files with no reviewable changes: 2

  • tests/main/openapi/test_collapsed_root_models_regression.py
  • tests/main/openapi/test_reference_hashing_regression.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aaa3d09e95

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread tests/main/openapi/test_main_openapi.py Resolved
@codspeed

codspeed Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 32.29%

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 regressed benchmarks
⏩ 98 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_perf_simple_msgspec_unset_field_rendering 342.1 ms 593 ms -42.31%
❌ test_perf_client_calls[sync] 25.5 ms 44 ms -41.98%
❌ test_perf_client_calls[async] 28.5 ms 48.8 ms -41.71%
❌ test_perf_load_pyproject_config[mapping-None] 163.2 µs 273.3 µs -40.28%
❌ test_perf_load_pyproject_config[config-None] 162 µs 269.2 µs -39.83%
❌ test_perf_load_pyproject_config[mapping-multiple] 175 µs 288.3 µs -39.31%
❌ test_perf_load_pyproject_config[config-multiple] 175 µs 286.9 µs -38.99%
❌ test_perf_scalar_root_collapsed_builtin 160.4 ms 254 ms -36.86%
❌ test_perf_large_models_msgspec 1.8 s 2.8 s -36.61%
❌ test_perf_unique_items_collapsed_builtin 208.7 ms 325.6 ms -35.9%
❌ test_perf_large_models_typed_dict[total-false-requiredness] 895.8 ms 1,397.2 ms -35.89%
❌ test_perf_large_models_single_module_stdout 1.3 s 2 s -35.81%
❌ test_perf_all_options_enabled 4.4 s 6.8 s -35.05%
❌ test_perf_ordinary_array_constraint_generation 1.8 s 2.8 s -35%
❌ test_perf_unique_items_schema_validators 274.7 ms 420.2 ms -34.62%
❌ test_perf_large_models_pydantic_v2_noformat 1.1 s 1.6 s -33.95%
❌ test_perf_large_models_typed_dict[legacy-requiredness] 912.1 ms 1,379.3 ms -33.87%
❌ test_perf_target_render[fastapi-large] 7.4 s 11.2 s -33.72%
❌ test_perf_local_reference_file_resolution 103.3 ms 155.3 ms -33.48%
❌ test_perf_openapi_large_pydantic_v2_builtin 1.1 s 1.6 s -33.02%
... ... ... ... ...

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

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing drop-expected-paths-b5 (8b284da) with main (075b593)

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

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@koxudaxi
Koudai Aono (koxudaxi) merged commit ff6a249 into main Nov 21, 2026
117 of 118 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the drop-expected-paths-b5 branch November 21, 2026 06:58
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Released in 0.100.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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant