You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drop the expected-path arguments of the rest of the JSON Schema tests - #7241
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.
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
JSON Schema tests now use updated golden-output paths and named snapshots. The reference manifest points many expected outputs to generated main_jsonschema fixtures. One documentation example now uses the relocated expected-output path.
Changes: JSON Schema test snapshot updates
Layer / File(s)
Summary
Update test expected-output declarations scripts/build_docs_examples.py, tests/main/jsonschema/test_main_jsonschema.py
Tests remove many explicit expected-file arguments and use updated snapshot names. Some CLI documentation declarations now supply golden-output paths. The documentation example points to the main_jsonschema fixture path.
The reference manifest redirects expected generated code, diagnostics, and other outputs to generated main_jsonschema snapshots across many JSON Schema cases.
Update reference and resource snapshots tests/main/jsonschema/test_main_jsonschema.refs
Recursive-reference, dynamic-reference, and nested-schema-resource cases use generated snapshots for expected outputs, runtime results, warnings, requests, and errors.
This change reorganizes JSON Schema test fixtures and snapshot references, plus one documentation example path. It does not change runtime behavior or production code. No actionable merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Drop the expected-path arguments of the rest of the JSON Schema tests" matches the changeset. The test file removes explicit assert_func/expected_file arguments, the reference manifest upda…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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 rest of the JSON Schema tests" matches the changeset. The test file removes explicit assert_func/expected_file arguments, the reference manifest updates expected-output paths, and the PR objectives state the same goal. The title is specific and concise, and it names the main change.
Finishing Touches
Generate unit tests (beta)
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.
Reviewing files that changed from the base of the PR and between d140717 and a1e4283.
Files ignored due to path filters: 51
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports-children-None-None-False-plain-children-PythonVersion.PY_310-api].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports-children-single-None-False-single-children_single-PythonVe~7f0f5bfd].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports-recursive-None-None-False-plain-recursive-PythonVersion.PY_310-api].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports-recursive-single-None-False-single-recursive_single-Python~1feac1a9].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports_collision-recursive-single-full-prefix-False-collision-col~9de8047b].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports_collision-recursive-single-minimal-prefix-False-collision-~d6d4ae67].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports_cycle-children-None-None-False-cycle-cycle_children-Python~4424db7c].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports_cycle-children-single-None-False-cycle_single-cycle_childr~c0ba27cf].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports_cycle-recursive-single-None-False-cycle_single-cycle_recur~da3a5fab].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports_cycle_collision-recursive-None-full-prefix-False-cycle-cyc~b4294297].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/dotted_module_exports[dotted_module_exports_reuse-recursive-single-minimal-prefix-True-reuse-reuse-Pyt~5243df33].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_constraints_on_target_builtin_names[msgspec-3.14]._warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_constraints_on_target_builtin_names[msgspec-3.15]._warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_module_named_by_newer_target.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_meta_unsupported_types[extra_args0]._rejected.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_meta_unsupported_types[extra_args0]._warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_meta_unsupported_types[extra_args1]._rejected.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_meta_unsupported_types[extra_args1]._warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_payload_runtime_compatibility.msgspec_payload_runtime_compatibility_warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_union_member_constraints[collapse_root_models]._decoded.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_union_member_constraints[collapse_root_models]._warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_union_member_constraints[msgspec]._warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_msgspec_union_member_constraints[no_use_annotated]._decoded.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_root_sequence_final_types[any-api-builtin-template].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_root_sequence_final_types[any_set-api-builtin-template].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_root_sequence_final_types[external-api-builtin-template].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_root_sequence_final_types[external_no_sequence-api-builtin-template].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/main_root_sequence_final_types[nested-api-builtin-template].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/missing_embedded_anchor[builtin-api].missing_anchor_api_error.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/missing_embedded_anchor[builtin-api].missing_anchor_native_error.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/missing_embedded_anchor[builtin-url-api].missing_anchor_requests.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-anchors-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-array-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-embedded-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-embedded-url-api]._requests.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-external_control-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-external_control-url-api]._requests.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-id_metadata-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-legacy-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-metadata-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-mixed_drafts-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-mixed_drafts-url-api]._requests.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-mixed_resources-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-nested_defs-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-oneof-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-physical_collision-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-relative_base-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/nested_schema_resources[builtin-sequence_reference-api]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/undeclared_required_variants[False-all]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/undeclared_required_variants[True-all]._runtime.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/jsonschema/main_jsonschema/validator_finalized_model_import[False-api].txt is excluded by !tests/data/**/*.txt and included by none
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
Reasoning: The PR only touches tests and test tooling. It moves expected-output fixtures under tests/data/expected/main/jsonschema into a main_jsonschema subdirectory with names derived from the tests, all with 0 lines added or removed. It refactors tests/main/jsonschema/test_main_jsonschema.py to drop explicit assert_func and expected_file arguments in favour of automatic expected-file lookup by test name, and updates the .refs file. It also points one docs example path in scripts/build_docs_examples.py at the moved fixture. No library source under src changes, so no CLI options, Python API, templates, defaults, error handling or supported Python versions change. Every cell in the behaviour diff is both-fail, with no accepted or violation cells, so the default generated output does not change.
This analysis was produced by the release draft workflow
This PR is now available in the latest release. See the release notes for details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit