Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON/YAML/CSV.
This report summarizes scanner evidence for datamodel-code-generator/datamodel-code-generator, a Python project with 4,035 GitHub stars. SynthScan examined 1,128,226 lines of code across 14322 source files, recording 21639 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 37.2 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 7281 finding(s).
Are imports declared and package/API names verified? 8286 finding(s).
Are wrappers, guards, and repeated structures necessary? 12537 finding(s).
Which changes need focused human review? 21639 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 21639 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_http.py | 0 | keep tests that mock http requests independent from external dns. | STRING |
| HIGH | tests/parser/test_jsonschema.py | 0 | keep tests that mock http requests independent from external dns. | STRING |
| HIGH | tests/parser/test_openapi.py | 0 | keep tests that mock http requests independent from external dns. | STRING |
| HIGH | tests/parser/test_jsonschema.py | 0 | test that additional imports are inside imports container. | STRING |
| HIGH | tests/parser/test_openapi.py | 0 | test that additional imports are inside imports container. | STRING |
| HIGH | tests/parser/test_base.py | 0 | test that additional imports are inside imports container. | STRING |
| HIGH | tests/parser/test_jsonschema.py | 0 | test that not additional imports are not affecting imports container. | STRING |
| HIGH | tests/parser/test_openapi.py | 0 | test that not additional imports are not affecting imports container. | STRING |
| HIGH | tests/parser/test_base.py | 0 | test that not additional imports are not affecting imports container. | STRING |
| HIGH | tests/data/custom_file_header_docstring.txt | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …pi/modular_all_exports_children_docstring/_internal.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …enapi/modular_all_exports_children_docstring/models.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …api/modular_all_exports_children_docstring/__init__.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …/modular_all_exports_children_docstring/collections.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …/openapi/modular_all_exports_children_docstring/bar.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …modular_all_exports_children_docstring/foo/__init__.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …napi/modular_all_exports_children_docstring/foo/bar.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …modular_all_exports_children_docstring/woo/__init__.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …napi/modular_all_exports_children_docstring/woo/boo.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …ular_all_exports_children_docstring/nested/__init__.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …i/modular_all_exports_children_docstring/nested/foo.py | 0 | custom module docstring header. this is a multi-line docstring used for testing. | STRING |
| HIGH | …/data/custom_file_header_with_docstring_and_import.txt | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | tests/data/custom_file_header_with_docstring.txt | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | …ration_platform/client/output-options/header-quotes.py | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | …penapi/custom_file_header_with_docstring_and_import.py | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | …cted/main/openapi/custom_file_header_with_docstring.py | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | …ema/custom_file_header_path_prepend_multi_file/user.py | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | …ma/custom_file_header_path_prepend_multi_file/order.py | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | …custom_file_header_path_prepend_multi_file/__init__.py | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | …/custom_file_header_path_prepend_multi_file/product.py | 0 | custom module docstring. this module contains generated models. | STRING |
| HIGH | tests/data/python/fastapi_handlers/kinds.py | 0 | return a service that records its keywords and sends no body. | STRING |
| HIGH | tests/data/python/fastapi_handlers/parameters.py | 0 | return a service that records its keywords and sends no body. | STRING |
| HIGH | tests/data/python/fastapi_handlers/defaults.py | 0 | return a service that records its keywords and sends no body. | STRING |
| HIGH | tests/data/python/input_model/dataclass_nested.py | 0 | enum that should be reused with reuse-foreign strategy. | STRING |
| HIGH | tests/data/python/input_model/typeddict_nested.py | 0 | enum that should be reused with reuse-foreign strategy. | STRING |
| HIGH | tests/data/python/input_model/nested_models.py | 0 | enum that should be reused with reuse-foreign strategy. | STRING |
| HIGH | tests/data/expected/parser/graphql/union-commented.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …sts/data/expected/parser/graphql/field-default-enum.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/parser/graphql/no_typename.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …sts/data/expected/parser/graphql/collection_options.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …expected/parser/graphql/collection_options_generate.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/parser/graphql/union_with_prefix.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/parser/graphql/union-aliased-bug.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ta/expected/skills/datamodel-code-generator/graphql.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …pec_inheritance/other_graphql_pydantic_v2_BaseModel.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …pected/main/msgspec_inheritance/graphql_diamond_one.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …a/expected/main/msgspec_inheritance/graphql_diamond.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …pec_inheritance/other_graphql_dataclasses_dataclass.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …pec_inheritance/other_graphql_pydantic_v2_dataclass.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ta/expected/main/msgspec_inheritance/graphql_single.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …expected/main/msgspec_inheritance/graphql_redundant.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ed/main/msgspec_inheritance/graphql_single_typename.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …in/msgspec_inheritance/graphql_diamond_one_typename.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …/msgspec_inheritance/other_graphql_typing_TypedDict.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …d/main/msgspec_inheritance/graphql_diamond_typename.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …main/msgspec_inheritance/graphql_redundant_typename.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ain/jsonschema/explicit_alias_names_graphql_literal.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …main/jsonschema/explicit_alias_names_graphql_global.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …main/graphql/root_union_field_dataclasses_dataclass.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ta/expected/main/graphql/union_description_cr_py312.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| 5212 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_build_preset_docs_script.py | 3 | CODE | |
| LOW | tests/test_update_command_help_on_markdown_script.py | 3 | CODE | |
| LOW | tests/test_conftest_helpers.py | 3 | CODE | |
| LOW | tests/test_remote_lock.py | 3 | CODE | |
| LOW | tests/test_reference.py | 3 | CODE | |
| LOW | tests/conftest.py | 3 | CODE | |
| LOW | tests/conftest.py | 1352 | CODE | |
| LOW | tests/conftest.py | 1353 | CODE | |
| LOW | tests/conftest.py | 1354 | CODE | |
| LOW | tests/conftest.py | 1355 | CODE | |
| LOW | tests/conftest.py | 1356 | CODE | |
| LOW | tests/conftest.py | 1358 | CODE | |
| LOW | tests/test_build_llms_txt_script.py | 3 | CODE | |
| LOW | tests/test_input_diff_timestamp.py | 3 | CODE | |
| LOW | tests/test_generate_changelog_script.py | 3 | CODE | |
| LOW | tests/test_yaml_backend.py | 3 | CODE | |
| LOW | tests/test_prompt.py | 3 | CODE | |
| LOW | tests/test_http_regressions.py | 3 | CODE | |
| LOW | tests/test_module_name.py | 3 | CODE | |
| LOW | tests/test_repository_transfer.py | 3 | CODE | |
| LOW | tests/test_ci_workflow.py | 3 | CODE | |
| LOW | tests/test_docs_formatting.py | 3 | CODE | |
| LOW | tests/test_imports.py | 3 | CODE | |
| LOW | tests/test_deprecations.py | 3 | CODE | |
| LOW | tests/test_report_release_analysis_failure_script.py | 3 | CODE | |
| LOW | tests/test_build_docs_examples_script.py | 3 | CODE | |
| LOW | tests/test_assert_helper_usage.py | 3 | CODE | |
| LOW | tests/test_util.py | 3 | CODE | |
| LOW | tests/assert_helper_allowlists.py | 9 | CODE | |
| LOW | tests/test_select_ci_test_shard_script.py | 3 | CODE | |
| LOW | tests/test_python_type_runtime.py | 3 | CODE | |
| LOW | tests/test_validators.py | 3 | CODE | |
| LOW | tests/test_resolve_release_draft_pr_script.py | 3 | CODE | |
| LOW | tests/test_validate_release_draft_analysis_script.py | 3 | CODE | |
| LOW | tests/test_enums.py | 3 | CODE | |
| LOW | tests/test_http.py | 3 | CODE | |
| LOW | tests/test_yaml_fast_constructor.py | 3 | CODE | |
| LOW | tests/test_main_kr.py | 3 | CODE | |
| LOW | tests/test_check_overview_sync_script.py | 3 | CODE | |
| LOW | tests/test_build_playground_assets_script.py | 3 | CODE | |
| LOW | tests/test_package_metadata.py | 3 | CODE | |
| LOW | tests/test_release_draft_workflow.py | 3 | CODE | |
| LOW | tests/test_build_architecture_docs_script.py | 3 | CODE | |
| LOW | tests/test_build_deprecation_docs_script.py | 3 | CODE | |
| LOW | tests/test_build_conformance_docs_script.py | 3 | CODE | |
| LOW | tests/test_prepare_release_draft_analysis_script.py | 3 | CODE | |
| LOW | tests/test_architecture_boundaries.py | 3 | CODE | |
| LOW | tests/test_python_decorator.py | 3 | CODE | |
| LOW | tests/test_build_release_benchmark_docs_script.py | 3 | CODE | |
| LOW | tests/test_ci_coverage_script.py | 3 | CODE | |
| LOW | tests/test_build_schema_docs_script.py | 3 | CODE | |
| LOW | tests/test_python_type_import_registry.py | 3 | CODE | |
| LOW | tests/test_resolver.py | 3 | CODE | |
| LOW | tests/test_infer_input_type.py | 3 | CODE | |
| LOW | tests/test_format.py | 3 | CODE | |
| LOW | tests/test_http_https.py | 3 | CODE | |
| LOW | tests/test_build_experimental_docs_script.py | 3 | CODE | |
| LOW | tests/test_experimental.py | 3 | CODE | |
| LOW | tests/test_types.py | 3 | CODE | |
| LOW | tests/test_types.py | 269 | CODE | |
| 8161 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_build_preset_docs_script.py | 34 | def test_build_preset_docs_check_is_up_to_date() -> None: | CODE |
| LOW | tests/test_build_preset_docs_script.py | 39 | def test_build_preset_docs_json_format() -> None: | CODE |
| LOW | tests/test_build_preset_docs_script.py | 51 | def test_build_preset_docs_check_help_mentions_all_generated_targets() -> None: | CODE |
| LOW⚡ | tests/test_build_preset_docs_script.py | 63 | def test_preset_metadata_renderers() -> None: | CODE |
| LOW⚡ | tests/test_build_preset_docs_script.py | 73 | def test_readme_supported_sections_are_rendered_from_enums() -> None: | CODE |
| LOW⚡ | tests/test_build_preset_docs_script.py | 81 | def test_marked_section_replacement_uses_end_marker_after_begin() -> None: | CODE |
| LOW⚡ | tests/test_build_preset_docs_script.py | 91 | def test_preset_config_supports_enum_backed_string_and_sequence_options() -> None: | CODE |
| LOW | tests/test_build_preset_docs_script.py | 120 | def test_dated_presets_keep_default_deserialization_immutable() -> None: | CODE |
| LOW | tests/test_build_preset_docs_script.py | 159 | def _render_preset_config_item(item: PresetConfigItem) -> str: | CODE |
| LOW | tests/test_update_command_help_on_markdown_script.py | 11 | def test_inject_recipe_quick_starts_replaces_ordered_markers() -> None: | CODE |
| LOW⚡ | tests/test_conftest_helpers.py | 259 | def test_assert_parser_modules_rejects_missing_expected_module(tmp_path: Path) -> None: | CODE |
| LOW⚡ | tests/test_conftest_helpers.py | 269 | def test_assert_parser_modules_rejects_unexpected_module(tmp_path: Path) -> None: | CODE |
| LOW⚡ | tests/test_conftest_helpers.py | 278 | def test_assert_inputs_not_mutated_allows_unchanged_nested_values() -> None: | CODE |
| LOW⚡ | tests/test_conftest_helpers.py | 286 | def test_assert_inputs_not_mutated_reports_nested_mutation() -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 54 | def test_assert_exact_directory_content_reports_diff(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 70 | def test_assert_file_content_matches_inline_snapshot_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 91 | def test_assert_file_content_matches_inactive_external_file(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 107 | def test_assert_file_content_rejects_mismatched_inactive_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 127 | def test_assert_file_content_missing_inline_snapshot_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 153 | def test_assert_file_content_handles_storage_lookup_error(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 164 | def raise_storage_lookup_error(_expected: object, _which: str) -> object: | CODE |
| LOW | tests/test_conftest_helpers.py | 175 | def test_assert_file_content_reports_failed_inline_snapshot_update( | CODE |
| LOW | tests/test_conftest_helpers.py | 209 | def test_assert_file_content_mismatched_inline_snapshot_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 238 | def test_assert_parser_results_rejects_unexpected_result(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 248 | def test_assert_parser_results_rejects_missing_result(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 297 | def test_assert_path_cache_evicts_lru_entries_reports_first_mismatch(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 317 | def test_assert_path_cache_evicts_lru_entries_reports_second_mismatch(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 336 | def test_builtin_parity_mock_call_preservation(mocker: MockerFixture) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 350 | def test_builtin_parity_prance_mock_detection(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 361 | def test_builtin_parity_cli_formatter_helpers(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 393 | def test_builtin_parity_clear_output_path(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 407 | def test_default_formatter_cli_args(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 450 | def test_builtin_default_formatter_config(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 470 | def test_default_formatter_main_generation_detection() -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 482 | def test_default_formatter_generate_options(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 501 | def test_builtin_parity_generated_python_comparison(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 520 | def test_builtin_cli_formatter_parity_file_path(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 557 | def test_builtin_cli_formatter_parity_stdin_path(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 586 | def test_builtin_generate_formatter_parity(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 611 | def test_builtin_generate_formatter_parity_preserves_warnings(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 639 | def test_collection_runs_measured_slow_tests_first(request: pytest.FixtureRequest) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 18 | def test_remote_lock_normalizes_request_headers_and_replaces_the_observed_closure(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 42 | def test_remote_lock_never_persists_url_or_request_secrets(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 65 | def test_remote_lock_request_identity_uses_only_safe_request_structure(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 128 | def test_remote_lock_commit_resolves_a_relative_target_from_the_current_directory( | CODE |
| LOW | tests/test_remote_lock.py | 142 | def test_nearest_existing_directory_rejects_a_nonexistent_path_root( | CODE |
| LOW | tests/test_remote_lock.py | 159 | def test_windows_staging_fallback_fails_closed_after_its_private_path_is_replaced( | CODE |
| LOW | tests/test_remote_lock.py | 183 | def test_windows_staging_fallback_rejects_a_replaced_anchor_before_creating_a_private_directory( | CODE |
| LOW | tests/test_remote_lock.py | 201 | def test_windows_staging_fallback_rejects_a_removed_anchor_before_creating_a_private_directory( | CODE |
| LOW | tests/test_remote_lock.py | 215 | def test_staging_directory_handles_deleted_sources_closed_handles_and_cleanup_failures( | CODE |
| LOW | tests/test_remote_lock.py | 272 | def test_staging_directory_fails_closed_for_unavailable_private_names( | CODE |
| LOW | tests/test_remote_lock.py | 295 | def collide_with_reserved_name(*_args: object, **_kwargs: object) -> int: | CODE |
| LOW | tests/test_remote_lock.py | 317 | def test_staging_directory_path_fallback_cleanup_does_not_require_descriptors(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 341 | def test_descriptor_publication_error_and_rollback_primitives_preserve_private_entries( | CODE |
| LOW | tests/test_remote_lock.py | 435 | def test_descriptor_publication_copy_and_journal_failure_paths_use_real_files( | CODE |
| LOW | tests/test_remote_lock.py | 506 | def fail_created_directory_removal(*_args: object, **_kwargs: object) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 522 | def test_path_publication_helpers_preserve_modes_and_own_only_created_directories( | CODE |
| LOW | tests/test_remote_lock.py | 561 | def test_path_publication_helpers_preserve_posix_modes(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 575 | def test_remote_lock_legacy_staging_reuses_and_discards_one_private_file(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 592 | def test_remote_lock_commit_rejects_legacy_path_staging_without_leaking_a_temporary_file(tmp_path: Path) -> None: | CODE |
| 5953 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 1132 | CODE | |
| LOW | tests/main/conftest.py | 664 | CODE | |
| LOW | tests/main/conftest.py | 907 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 287 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 495 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 532 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 681 | CODE | |
| LOW | …n/input_model/inherited_overrides/RepeatedPairChild.py | 19 | CODE | |
| LOW | …/main/input_model/inherited_overrides/RepeatedChild.py | 19 | CODE | |
| LOW | …odel/inherited_overrides/RepeatedGrandChild_builtin.py | 19 | CODE | |
| LOW | …/input_model/inherited_overrides/ClassVarAliasChild.py | 19 | CODE | |
| LOW | …model/inherited_overrides/RepeatedPairChild_builtin.py | 19 | CODE | |
| LOW | …put_model/inherited_overrides/RepeatedChild_builtin.py | 19 | CODE | |
| LOW | …/input_model/inherited_overrides/RepeatedGrandChild.py | 19 | CODE | |
| LOW | …_model/inherited_overrides/SharedAliasChild_builtin.py | 19 | CODE | |
| LOW | …in/input_model/inherited_overrides/SharedAliasChild.py | 19 | CODE | |
| LOW | …ed/main/input_model/inherited_overrides/UniqueChild.py | 19 | CODE | |
| LOW | …odel/inherited_overrides/ClassVarAliasChild_builtin.py | 19 | CODE | |
| LOW | …input_model/inherited_overrides/UniqueChild_builtin.py | 19 | CODE | |
| LOW | …ic_v2_BaseModel/defaults_basemodel/routers/untagged.py | 31 | CODE | |
| LOW | …rystring/pydantic_v2_BaseModel/client/_async_client.py | 44 | CODE | |
| LOW | …rystring/pydantic_v2_BaseModel/client/_async_client.py | 107 | CODE | |
| LOW | …on-querystring/pydantic_v2_BaseModel/client/_client.py | 44 | CODE | |
| LOW | …on-querystring/pydantic_v2_BaseModel/client/_client.py | 107 | CODE | |
| LOW | …gination/pydantic_v2_BaseModel/client/_async_client.py | 53 | CODE | |
| LOW | …gination/pydantic_v2_BaseModel/client/_async_client.py | 158 | CODE | |
| LOW | …ges/pagination/pydantic_v2_BaseModel/client/_client.py | 53 | CODE | |
| LOW | …ges/pagination/pydantic_v2_BaseModel/client/_client.py | 158 | CODE | |
| LOW | …es/names/pydantic_v2_BaseModel/client/_async_client.py | 43 | CODE | |
| LOW | …es/names/pydantic_v2_BaseModel/client/_async_client.py | 120 | CODE | |
| LOW | …packages/names/pydantic_v2_BaseModel/client/_client.py | 43 | CODE | |
| LOW | …packages/names/pydantic_v2_BaseModel/client/_client.py | 120 | CODE | |
| LOW | …-context/pydantic_v2_BaseModel/client/_async_client.py | 44 | CODE | |
| LOW | …-context/pydantic_v2_BaseModel/client/_async_client.py | 100 | CODE | |
| LOW | …s/auth-context/pydantic_v2_BaseModel/client/_client.py | 44 | CODE | |
| LOW | …s/auth-context/pydantic_v2_BaseModel/client/_client.py | 100 | CODE | |
| LOW | …es/empty/pydantic_v2_BaseModel/client/_async_client.py | 36 | CODE | |
| LOW | …es/empty/pydantic_v2_BaseModel/client/_async_client.py | 85 | CODE | |
| LOW | …packages/empty/pydantic_v2_BaseModel/client/_client.py | 36 | CODE | |
| LOW | …packages/empty/pydantic_v2_BaseModel/client/_client.py | 85 | CODE | |
| LOW | …ges/auth/pydantic_v2_BaseModel/client/_async_client.py | 48 | CODE | |
| LOW | …ges/auth/pydantic_v2_BaseModel/client/_async_client.py | 104 | CODE | |
| LOW | …/packages/auth/pydantic_v2_BaseModel/client/_client.py | 48 | CODE | |
| LOW | …/packages/auth/pydantic_v2_BaseModel/client/_client.py | 104 | CODE | |
| LOW | …ges/pets/pydantic_v2_BaseModel/client/_async_client.py | 45 | CODE | |
| LOW | …ges/pets/pydantic_v2_BaseModel/client/_async_client.py | 101 | CODE | |
| LOW | …/packages/pets/pydantic_v2_BaseModel/client/_client.py | 45 | CODE | |
| LOW | …/packages/pets/pydantic_v2_BaseModel/client/_client.py | 101 | CODE | |
| LOW | …ckages/streams/pydantic_v2_BaseModel/client/_client.py | 46 | CODE | |
| LOW | …ckages/streams/pydantic_v2_BaseModel/client/_client.py | 123 | CODE | |
| LOW | …-headers/pydantic_v2_BaseModel/client/_async_client.py | 44 | CODE | |
| LOW | …-headers/pydantic_v2_BaseModel/client/_async_client.py | 100 | CODE | |
| LOW | …/retry-headers/pydantic_v2_BaseModel/client/_client.py | 44 | CODE | |
| LOW | …/retry-headers/pydantic_v2_BaseModel/client/_client.py | 100 | CODE | |
| LOW | …/retries/pydantic_v2_BaseModel/client/_async_client.py | 44 | CODE | |
| LOW | …/retries/pydantic_v2_BaseModel/client/_async_client.py | 100 | CODE | |
| LOW | …ckages/retries/pydantic_v2_BaseModel/client/_client.py | 44 | CODE | |
| LOW | …ckages/retries/pydantic_v2_BaseModel/client/_client.py | 100 | CODE | |
| LOW | …ntic_v2_BaseModel/client/resources/item_store/_sync.py | 43 | CODE | |
| LOW | …ntic_v2_BaseModel/client/resources/item_store/_sync.py | 121 | CODE | |
| 392 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/parser/conftest.py | 7 | __all__ = ["auto_freeze_time", "output_file"] | CODE |
| LOW | tests/main/test_dynamic_models.py | 100 | def _setup_and_clear_cache() -> None: | CODE |
| LOW | tests/main/payload_validation/__init__.py | 47 | __all__ = [ | CODE |
| LOW⚡ | tests/main/payload_validation/schema.py | 286 | def _set_default_openapi_object_type(schema: dict[str, Any]) -> None: | CODE |
| LOW⚡ | tests/main/payload_validation/schema.py | 295 | def _set_discriminator_mapping_enum(schema: dict[str, Any], source_schema: dict[str, Any]) -> None: | CODE |
| LOW | tests/main/payload_validation/schema.py | 448 | def _set_discriminator_property_constraint(schema: dict[str, Any], property_name: str, tags: list[str]) -> None: | CODE |
| LOW | tests/main/payload_validation/schema.py | 590 | def _set_payload_format_enum(schema: dict[str, Any]) -> None: | CODE |
| LOW | tests/data/architecture_boundaries/target/forbidden.py | 18 | __all__ = [ | CODE |
| LOW | tests/data/architecture_boundaries/shared/forbidden.py | 9 | __all__ = ["documents", "render_target", "stable_toposort", "types"] | CODE |
| LOW | …data/architecture_boundaries/output_model/forbidden.py | 3 | __all__ = ["stable_toposort"] | CODE |
| LOW | tests/data/python/decimal_compat.py | 7 | __all__ = ["Decimal"] | CODE |
| LOW | tests/data/python/unknown_pattern_annotations.py | 12 | def set_schema_extensions(self, path: str, obj: JsonSchemaObject) -> None: | CODE |
| LOW | tests/data/python/fastapi_handlers/errors.py | 19 | def update_account(self, **arguments: object) -> None: | CODE |
| LOW | …on/custom_formatters/sibling_watch_package/__init__.py | 4 | __all__ = ["CodeFormatter"] | CODE |
| LOW | …tom_formatters/transactional_watch_package/__init__.py | 4 | __all__ = ["REVISION", "CodeFormatter"] | CODE |
| LOW | …thon/custom_formatters/stale_watch_package/__init__.py | 4 | __all__ = ["CodeFormatter"] | CODE |
| LOW | …m_formatters/stale_watch_package/package_refactored.py | 3 | __all__ = ["CodeFormatter"] | CODE |
| LOW | …_models/relative_parent_import_cli_modules/__init__.py | 11 | __all__ = [ | CODE |
| LOW | …s/relative_parent_import_cli_modules/right/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …ative_parent_import_cli_modules/right/deep/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …ls/relative_parent_import_cli_modules/left/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …amic_models/relative_parent_import_modules/__init__.py | 12 | __all__ = [ | CODE |
| LOW | …odels/relative_parent_import_modules/right/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …/relative_parent_import_modules/right/deep/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …models/relative_parent_import_modules/left/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …napi_parser_parse_modular_pydantic_v2_ruff/__init__.py | 5 | __all__ = ["DifferentTea", "Error", "Id", "OptionalModel", "Result", "Source"] | CODE |
| LOW | …_parser_parse_modular_pydantic_v2_ruff/foo/__init__.py | 5 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …pi_parser_parse_modular_pydantic_v2_ruff/nested/foo.py | 6 | __all__ = ["ListModel", "Tea", "TeaClone"] | CODE |
| LOW | …arser/openapi/openapi_parser_parse_modular/__init__.py | 3 | __all__ = ["DifferentTea", "Error", "Id", "OptionalModel", "Result", "Source"] | CODE |
| LOW | …r/openapi/openapi_parser_parse_modular/foo/__init__.py | 3 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …ser/openapi/openapi_parser_parse_modular/nested/foo.py | 5 | __all__ = ["ListModel", "Tea", "TeaClone"] | CODE |
| LOW | …/datamodel-code-generator/directory_output/__init__.py | 8 | __all__ = [ | CODE |
| LOW | tests/data/expected/main_kr/main_modular/__init__.py | 7 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …sts/data/expected/main_kr/main_modular/foo/__init__.py | 7 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | tests/data/expected/main_kr/main_modular/nested/foo.py | 9 | __all__ = ["List", "Tea", "TeaClone"] | CODE |
| LOW | …s/data/expected/main_kr/main_modular_no_file/output.py | 7 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …s/data/expected/main_kr/main_modular_no_file/output.py | 140 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …s/data/expected/main_kr/main_modular_no_file/output.py | 210 | __all__ = ["List", "Tea", "TeaClone"] | CODE |
| LOW | tests/data/expected/main_kr/jobs/modular_init.py | 6 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …n/generation_platform/codecs/plan/oas32/application.py | 68 | __all__ = [ | CODE |
| LOW | …latform/codecs/plan/directions-accepted/application.py | 68 | __all__ = [ | CODE |
| LOW | …eration_platform/codecs/plan/parameters/application.py | 68 | __all__ = [ | CODE |
| LOW | …n/generation_platform/codecs/plan/oas30/application.py | 68 | __all__ = [ | CODE |
| LOW | …n/generation_platform/codecs/plan/oas31/application.py | 79 | __all__ = [ | CODE |
| LOW | …es/references/pydantic_v2_BaseModel/server/security.py | 28 | __all__ = [ | CODE |
| LOW | …es/references/pydantic_v2_BaseModel/server/__init__.py | 19 | __all__ = [ | CODE |
| LOW | …references/pydantic_v2_BaseModel/server/application.py | 79 | __all__ = [ | CODE |
| LOW | …packages/pets/pydantic_v2_BaseModel/server/__init__.py | 15 | __all__ = [ | CODE |
| LOW | …kages/pets/pydantic_v2_BaseModel/server/application.py | 73 | __all__ = [ | CODE |
| LOW | …ges/templates/pydantic_v2_BaseModel/server/__init__.py | 17 | __all__ = [ | CODE |
| LOW | …/templates/pydantic_v2_BaseModel/server/application.py | 73 | __all__ = [ | CODE |
| LOW | …es/docstrings/pydantic_v2_BaseModel/server/__init__.py | 15 | __all__ = [ | CODE |
| LOW | …docstrings/pydantic_v2_BaseModel/server/application.py | 68 | __all__ = [ | CODE |
| LOW | …/scheme-names/pydantic_v2_BaseModel/server/security.py | 33 | __all__ = [ | CODE |
| LOW | …/scheme-names/pydantic_v2_BaseModel/server/__init__.py | 19 | __all__ = [ | CODE |
| LOW | …heme-names/pydantic_v2_BaseModel/server/application.py | 79 | __all__ = [ | CODE |
| LOW | …/pydantic_v2_BaseModel/spellings_basemodel/security.py | 20 | __all__ = [ | CODE |
| LOW | …/pydantic_v2_BaseModel/spellings_basemodel/__init__.py | 19 | __all__ = [ | CODE |
| LOW | …dantic_v2_BaseModel/spellings_basemodel/application.py | 89 | __all__ = [ | CODE |
| LOW | …/pets/pydantic_v2_dataclass/pets_dataclass/__init__.py | 15 | __all__ = [ | CODE |
| 350 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 202 | CODE | |
| LOW | tests/conftest.py | 634 | CODE | |
| LOW | tests/test_assert_helper_usage.py | 678 | CODE | |
| LOW | tests/test_assert_helper_usage.py | 831 | CODE | |
| LOW | tests/test_assert_helper_usage.py | 848 | CODE | |
| LOW | tests/test_assert_helper_usage.py | 890 | CODE | |
| LOW | tests/test_yaml_fast_constructor.py | 75 | CODE | |
| LOW | tests/test_yaml_fast_constructor.py | 421 | CODE | |
| LOW | tests/test_input_model.py | 1959 | CODE | |
| LOW | tests/test_input_model.py | 2010 | CODE | |
| LOW | tests/test_input_model.py | 2068 | CODE | |
| LOW | tests/test_input_model.py | 2234 | CODE | |
| LOW | tests/test_input_model.py | 2554 | CODE | |
| LOW | tests/test_input_model.py | 2788 | CODE | |
| LOW | tests/main/conftest.py | 907 | CODE | |
| LOW | tests/main/conftest.py | 1378 | CODE | |
| LOW | tests/main/test_performance.py | 1437 | CODE | |
| LOW | tests/main/test_payload_validation.py | 664 | CODE | |
| LOW | tests/main/xmlschema/test_main_xmlschema.py | 999 | CODE | |
| LOW | tests/main/xmlschema/test_main_xmlschema.py | 1217 | CODE | |
| LOW | tests/main/xmlschema/test_main_xmlschema.py | 1301 | CODE | |
| LOW | tests/main/openapi/test_main_openapi.py | 7277 | CODE | |
| LOW | tests/main/openapi/test_main_openapi.py | 10287 | CODE | |
| LOW | tests/main/payload_validation/mutation.py | 249 | CODE | |
| LOW | tests/main/payload_validation/cases.py | 67 | CODE | |
| LOW | tests/main/payload_validation/schema.py | 129 | CODE | |
| LOW | …s/main/jsonschema/test_numeric_constraint_precision.py | 125 | CODE | |
| LOW | …main/jsonschema/test_allof_constraint_intersections.py | 166 | CODE | |
| LOW | tests/main/jsonschema/test_model_metadata.py | 31 | CODE | |
| LOW | tests/main/jsonschema/test_allof_root_regressions.py | 31 | CODE | |
| LOW | tests/main/jsonschema/test_pattern_string_adapters.py | 33 | CODE | |
| LOW | tests/main/jsonschema/test_allof_ref_siblings.py | 42 | CODE | |
| LOW | tests/main/jsonschema/test_allof_ref_siblings.py | 251 | CODE | |
| LOW | tests/main/graphql/test_typename_collisions.py | 43 | CODE | |
| LOW | tests/data/python/generation_session_inputs.py | 44 | CODE | |
| LOW | …n/input_model/inherited_overrides/RepeatedPairChild.py | 78 | CODE | |
| LOW | …/main/input_model/inherited_overrides/RepeatedChild.py | 78 | CODE | |
| LOW | …odel/inherited_overrides/RepeatedGrandChild_builtin.py | 68 | CODE | |
| LOW | …/input_model/inherited_overrides/ClassVarAliasChild.py | 78 | CODE | |
| LOW | …model/inherited_overrides/RepeatedPairChild_builtin.py | 68 | CODE | |
| LOW | …put_model/inherited_overrides/RepeatedChild_builtin.py | 68 | CODE | |
| LOW | …/input_model/inherited_overrides/RepeatedGrandChild.py | 78 | CODE | |
| LOW | …_model/inherited_overrides/SharedAliasChild_builtin.py | 68 | CODE | |
| LOW | …in/input_model/inherited_overrides/SharedAliasChild.py | 78 | CODE | |
| LOW | …ed/main/input_model/inherited_overrides/UniqueChild.py | 78 | CODE | |
| LOW | …odel/inherited_overrides/ClassVarAliasChild_builtin.py | 68 | CODE | |
| LOW | …input_model/inherited_overrides/UniqueChild_builtin.py | 68 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_inline_paths.py | 25 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_inline_paths.py | 81 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_inline_paths.py | 141 | CODE | |
| LOW | …pected/main/jsonschema/unique_items_union_enum_root.py | 69 | CODE | |
| LOW | …/expected/main/jsonschema/mapping_schema_validators.py | 39 | CODE | |
| LOW | …/expected/main/jsonschema/mapping_schema_validators.py | 143 | CODE | |
| LOW | …/expected/main/jsonschema/mapping_schema_validators.py | 221 | CODE | |
| LOW | …n/jsonschema/unique_items_generic_container_mapping.py | 70 | CODE | |
| LOW | …alidators_property_count_root_collapse_generic_base.py | 31 | CODE | |
| LOW | …hema/unique_items_variant_root_alias_use_type_alias.py | 32 | CODE | |
| LOW | …hema/unique_items_variant_root_alias_use_type_alias.py | 92 | CODE | |
| LOW | …n/jsonschema/unique_items_property_alias_population.py | 68 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_mapping_collision.py | 70 | CODE | |
| 414 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 1386 | except Exception as e: # pragma: no cover | CODE |
| LOW | tests/test_yaml_fast_constructor.py | 87 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | tests/test_yaml_fast_constructor.py | 367 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | tests/test_infer_input_type.py | 49 | except Exception as exc: | CODE |
| LOW | tests/main/test_cli_fast_paths.py | 690 | except Exception as exc: | CODE |
| MEDIUM | tests/main/conftest.py | 1329 | def _get_concurrent_interpreters_module() -> Any | None: | CODE |
| LOW | tests/main/conftest.py | 1367 | except Exception as exception: | STRING |
| LOW | tests/main/conftest.py | 1389 | except Exception as exception: # pragma: no cover | STRING |
| LOW | tests/main/payload_validation/codegen.py | 95 | except Exception as exception: | CODE |
| LOW | tests/main/payload_validation/codegen.py | 173 | except Exception as exc: | CODE |
| LOW | tests/main/payload_validation/codegen.py | 202 | except Exception as exc: | CODE |
| LOW | …d/model/compiled_templates/client_templates_parity.txt | 160 | except Exception as error: | CODE |
| LOW | …d/model/compiled_templates/client_templates_parity.txt | 268 | except Exception as error: | CODE |
| LOW⚡ | …n/input_model/inherited_overrides/RepeatedPairChild.py | 254 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …n/input_model/inherited_overrides/RepeatedPairChild.py | 261 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/main/input_model/inherited_overrides/RepeatedChild.py | 254 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/main/input_model/inherited_overrides/RepeatedChild.py | 261 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …odel/inherited_overrides/RepeatedGrandChild_builtin.py | 213 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …odel/inherited_overrides/RepeatedGrandChild_builtin.py | 220 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/input_model/inherited_overrides/ClassVarAliasChild.py | 254 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/input_model/inherited_overrides/ClassVarAliasChild.py | 261 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …model/inherited_overrides/RepeatedPairChild_builtin.py | 213 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …model/inherited_overrides/RepeatedPairChild_builtin.py | 220 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …put_model/inherited_overrides/RepeatedChild_builtin.py | 213 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …put_model/inherited_overrides/RepeatedChild_builtin.py | 220 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/input_model/inherited_overrides/RepeatedGrandChild.py | 254 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/input_model/inherited_overrides/RepeatedGrandChild.py | 261 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …_model/inherited_overrides/SharedAliasChild_builtin.py | 213 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …_model/inherited_overrides/SharedAliasChild_builtin.py | 220 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …in/input_model/inherited_overrides/SharedAliasChild.py | 254 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …in/input_model/inherited_overrides/SharedAliasChild.py | 261 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ed/main/input_model/inherited_overrides/UniqueChild.py | 254 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ed/main/input_model/inherited_overrides/UniqueChild.py | 261 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …odel/inherited_overrides/ClassVarAliasChild_builtin.py | 213 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …odel/inherited_overrides/ClassVarAliasChild_builtin.py | 220 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …input_model/inherited_overrides/UniqueChild_builtin.py | 213 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …input_model/inherited_overrides/UniqueChild_builtin.py | 220 | except Exception: # noqa: BLE001 | CODE |
| LOW | …rystring/pydantic_v2_BaseModel/client/_async_client.py | 161 | except Exception as error: | CODE |
| LOW | …on-querystring/pydantic_v2_BaseModel/client/_client.py | 161 | except Exception as error: | CODE |
| LOW | …gination/pydantic_v2_BaseModel/client/_async_client.py | 216 | except Exception as error: | CODE |
| LOW | …ges/pagination/pydantic_v2_BaseModel/client/_client.py | 216 | except Exception as error: | CODE |
| LOW | …es/names/pydantic_v2_BaseModel/client/_async_client.py | 170 | except Exception as error: | CODE |
| LOW | …packages/names/pydantic_v2_BaseModel/client/_client.py | 170 | except Exception as error: | CODE |
| LOW | …-context/pydantic_v2_BaseModel/client/_async_client.py | 160 | except Exception as error: | CODE |
| LOW | …s/auth-context/pydantic_v2_BaseModel/client/_client.py | 160 | except Exception as error: | CODE |
| LOW | …es/empty/pydantic_v2_BaseModel/client/_async_client.py | 135 | except Exception as error: | CODE |
| LOW | …packages/empty/pydantic_v2_BaseModel/client/_client.py | 135 | except Exception as error: | CODE |
| LOW | …ges/auth/pydantic_v2_BaseModel/client/_async_client.py | 172 | except Exception as error: | CODE |
| LOW | …/packages/auth/pydantic_v2_BaseModel/client/_client.py | 172 | except Exception as error: | CODE |
| LOW | …ges/pets/pydantic_v2_BaseModel/client/_async_client.py | 151 | except Exception as error: | CODE |
| LOW | …/packages/pets/pydantic_v2_BaseModel/client/_client.py | 151 | except Exception as error: | CODE |
| LOW | …ckages/streams/pydantic_v2_BaseModel/client/_client.py | 177 | except Exception as error: | CODE |
| LOW | …-headers/pydantic_v2_BaseModel/client/_async_client.py | 164 | except Exception as error: | CODE |
| LOW | …/retry-headers/pydantic_v2_BaseModel/client/_client.py | 164 | except Exception as error: | CODE |
| LOW | …/retries/pydantic_v2_BaseModel/client/_async_client.py | 150 | except Exception as error: | CODE |
| LOW | …ckages/retries/pydantic_v2_BaseModel/client/_client.py | 150 | except Exception as error: | CODE |
| LOW | …kages/evolution/msgspec_Struct/client/_async_client.py | 146 | except Exception as error: | CODE |
| LOW | …nt/packages/evolution/msgspec_Struct/client/_client.py | 146 | except Exception as error: | CODE |
| LOW | …al-name-errors/pydantic_v2_BaseModel/client/_client.py | 174 | except Exception as error: | CODE |
| LOW | …ages/templates/pydantic_v2_BaseModel/client/_client.py | 158 | except Exception as error: | CODE |
| 255 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/data/custom_file_header.txt | 1 | # multiline custom ; | COMMENT |
| LOW | tests/data/custom_file_header_comments_only.txt | 1 | # Just a comment | COMMENT |
| LOW | tests/data/custom_file_header_fast_path.txt | 1 | # Header comment containing """quotes""" and a semicolon; | COMMENT |
| LOW | …els/root_model_aliases/classes/cli_modules/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …_models/root_model_aliases/classes/modules/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …els/root_model_aliases/aliases/cli_modules/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …_models/root_model_aliases/aliases/modules/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | tests/data/expected/http/public_remote_module_init.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …sts/data/expected/main_kr/main_modular/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/data/expected/main_kr/main_modular/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ain/asyncapi/discriminator_state_isolation/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …pets/pydantic_v2_BaseModel/server/_runtime/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ataclass/variants_modular_dataclass_models/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …aseModel/variants_modular_basemodel_models/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ration_platform/api_scope/version-reversed/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ain/generation_platform/api_scope/dot-none/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …eneration_platform/api_scope/version-first/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ration_platform/api_scope/version-explicit/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …tion_platform/api_scope/external-directory/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ation_platform/api_scope/version-directory/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …eration_platform/api_scope/repeated-source/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …enapi/usable_identical_invalid_dotted_models_stdout.py | 21 | # generated by datamodel-codegen: | COMMENT |
| LOW | …enapi/usable_collapsed_invalid_dotted_models_stdout.py | 21 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ain/openapi/nested_package_enum_default/io/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …api/nested_package_enum_default/io/example/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …nested_package_enum_default/io/example/api/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …n/openapi/no_use_type_checking_imports/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …penapi/no_use_type_checking_imports/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/openapi/all_exports_no_child/parent/child/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/allof_inheritance_modular_import_override/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …enapi/external_discriminator_base/multiple/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …openapi/module_class_name_collision_deep/A/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …c_container_types_standard_collections/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ontainer_types_standard_collections/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …i/circular_imports_different_prefixes/beta/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/circular_imports_different_prefixes/gamma/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/circular_imports_different_prefixes/alpha/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …antic_ruff_defaults_to_runtime_imports/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ic_ruff_defaults_to_runtime_imports/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …code_fallback_on_error_init_exports/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …enapi/serialize_as_any_module_import_alias/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …main/openapi/modular_custom_class_name/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …n/openapi/modular_custom_class_name/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …_class_name_collision_deep_exact_imports/A/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …napi/circular_imports_mixed_prefixes/other/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …api/circular_imports_mixed_prefixes/common/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …enapi/external_relative_ref/module_openapi/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ternal_relative_ref/module_openapi/modules/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …rsive_collision_avoided_by_renaming/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …pected/main/openapi/modular_typed_dict/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ted/main/openapi/modular_typed_dict/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …iminator/enum_use_enum_values_module_split/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …tor/enum_use_enum_values_module_split/pets/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …r_all_exports_recursive_full_prefix/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ected/main/openapi/modular_reuse_model/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ed/main/openapi/modular_reuse_model/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …pi/dot_notation_collapse_reuse_models_tree/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …penapi/modular_all_exports_children/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/expected/main/openapi/namespace_subns_ref/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …openapi/dot_notation_collapse_reuse_models/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| 239 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_remote_lock.py | 706 | ('{"version":1,"resources":[null]}', "each resource must be an object"), | CODE |
| HIGH | tests/test_assert_helper_usage.py | 2451 | f"{platform}/fastapi/listed.json": '{"files": ["server/py.typed", null]}\n', | CODE |
| HIGH | tests/test_yaml_fast_constructor.py | 475 | "!!set {key: null}", | CODE |
| HIGH⚡ | tests/test_build_release_benchmark_docs_script.py | 876 | '{"releases": [null, {"version": "", "uploaded_at": "2026-06-19T00:00:00Z"}]}', | CODE |
| HIGH | tests/test_build_release_benchmark_docs_script.py | 911 | non_object_entry.write_text('{"schema_version": 1, "metadata": {}, "entries": [null]}', encoding="utf-8") | CODE |
| HIGH | tests/test_build_release_benchmark_docs_script.py | 129 | }, null, 2)); | STRING |
| HIGH | tests/parser/test_schema_version.py | 433 | "null": {"default": Types.null}, | CODE |
| HIGH | tests/parser/test_schema_version.py | 504 | "null": {"default": Types.null}, | CODE |
| HIGH | tests/model/test_dataclass_ordering.py | 133 | assert DataModel.FIELD_DEFAULT_CLASSIFIER(undefined) == (False, False) | CODE |
| HIGH⚡ | tests/main/xmlschema/test_main_xmlschema.py | 318 | valid_json='{"nillableTrue":null,"nillableOne":null,"nillableFalse":"false","nillableZero":"zero","unspecified": | CODE |
| HIGH⚡ | tests/main/xmlschema/test_main_xmlschema.py | 319 | invalid_json='{"nillableTrue":null,"nillableOne":null,"nillableFalse":"false","nillableZero":null,"unspecified": | CODE |
| HIGH | tests/main/openapi/test_main_openapi.py | 3145 | valid_json='{"requiredNullable": null, "nullableUnrequired": null}', | CODE |
| HIGH | tests/main/openapi/test_main_openapi.py | 4472 | valid_json='{"metadataOnly": null, "newRequired": 1}', | CODE |
| HIGH | tests/main/payload_validation/conformance.py | 482 | "OpenAPI msgspec full-matrix coverage remains representative until backend-specific enum, null, " | CODE |
| HIGH | …ts/data/generation_platform/codecs/typing/first_use.py | 7 | json_value('{"name": "A", "tag": null, "items": [1, {"nested": true}]}') | CODE |
| HIGH⚡ | tests/api_generation/test_client_cli.py | 877 | '"/paths/~1owls/get": {"runtime": null}, ' | CODE |
| HIGH⚡ | tests/api_generation/test_client_cli.py | 878 | '"/paths/~1bats/get": {"parameter_names": null}, ' | CODE |
| HIGH⚡ | tests/api_generation/test_client_cli.py | 879 | '"/paths/~1apes/get": {"body_field_names": null}}' | CODE |
| HIGH | …ts/api_generation/scenarios/client_webhook_adapters.py | 786 | ("null type", mapped, b'{"meta": {"type": null}}', None), | CODE |
| HIGH | tests/api_generation/scenarios/client_streams.py | 336 | harness.reply((b'data: {"type": null}\n\n',)), | CODE |
| HIGH | tests/api_generation/scenarios/client_pagination.py | 244 | """End on a missing, null, or declared cursor, and on an empty one only where it is declared an end.""" | STRING |
| HIGH | tests/api_generation/scenarios/client_stream_resume.py | 525 | """Track an NDJSON body cursor: inherited when missing, cleared by null, and written to a query parameter.""" | STRING |
| HIGH | tests/api_generation/scenarios/client_stream_resume.py | 531 | b'{"id": null, "text": "cleared"}\n', | CODE |
| HIGH | tests/api_generation/scenarios/client_stream_resume.py | 549 | """Track an SSE body cursor that may be neither missing nor null, written into the caller's JSON body.""" | STRING |
| HIGH | tests/api_generation/scenarios/client_stream_resume.py | 566 | ("null cursor", 'event: tick\ndata: {"seq": null}\n\n'), | CODE |
| HIGH | tests/api_generation/scenarios/client_stream_resume.py | 889 | resumes.reply(b'data: {"scope": null}\n\n', resumes.harness.interrupted()) | CODE |
| HIGH | tests/api_generation/scenarios/client_stream_resume.py | 969 | resumes.reply(b'data: {"scope": null}\n\n', resumes.harness.interrupted()) | CODE |
| HIGH | src/datamodel_code_generator/_openapi_wire_plan.py | 741 | """Yield the kind of one literal or enum member value: none for null, and None for one that is no scalar.""" | STRING |
| HIGH | src/datamodel_code_generator/_client/protocols.py | 362 | return self.value(f"{at}.value", f"{at}.value is null; use kind 'null'") | CODE |
| HIGH | src/datamodel_code_generator/_client/model_facts.py | 262 | """Return the object model a body stands for, alone or with null, or None when it is anything else. | STRING |
| HIGH | src/datamodel_code_generator/_client/pagination.py | 495 | message = f"The {what} of {name!r} can read null, which no end condition covers" | CODE |
| HIGH | src/datamodel_code_generator/_client/pagination.py | 600 | message = f"The {what} of {helper.name!r} can give null, which cannot be written to {place}" | CODE |
| HIGH | …_code_generator/_client/_compiled_templates/runtime.py | 118 | "\nAn offset or page-number helper sends the first request as the caller gives it and starts at the posi | CODE |
| HIGH | src/datamodel_code_generator/parser/schema_version.py | 666 | "null": {"default": Types.null}, | CODE |
| HIGH⚡ | src/datamodel_code_generator/parser/jsonschema.py | 2285 | return self.data_type_manager.get_data_type(Types.null) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 3394 | else self.data_type_manager.get_data_type(Types.null) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 11465 | data_types.append(self.data_type_manager.get_data_type(Types.null)) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 11585 | return self.data_type_manager.get_data_type(Types.null) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 11602 | data_type=self.data_type_manager.get_data_type(Types.null), | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 10073 | """Parse a type array of object and null, keeping the value type of the map.""" | STRING |
| HIGH | src/datamodel_code_generator/_runtime/client/client.py | 342 | A style has no spelling of null, so an optional style parameter whose value dumps to null is left out, as UNSET is. | STRING |
| HIGH | …datamodel_code_generator/_runtime/protocols/streams.py | 741 | if (resume.missing if found is MISSING else resume.null) == "error": | CODE |
| HIGH | …/datamodel_code_generator/_runtime/protocols/resume.py | 47 | """Return a saved string or null, refusing any other value.""" | STRING |
| HIGH | …el_code_generator/_runtime/protocols/webhook_events.py | 110 | The member must be a string naming one of the types exactly; an absent member, null, another JSON type, or an | STRING |
| HIGH | …amodel_code_generator/_runtime/protocols/pagination.py | 94 | An absent cursor, JSON null, or the empty string ends it only when its end condition says so; `end_values` are | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_input_model.py | 843 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 845 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 951 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 953 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1023 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1025 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1322 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1324 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1841 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1843 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/parser/test_schema_version.py | 1238 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/parser/test_schema_version.py | 1240 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1046 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1048 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1301 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1303 | # ============================================================================= | COMMENT |
| MEDIUM | tests/main/test_performance.py | 1398 | # ============================================================================= | COMMENT |
| MEDIUM | tests/main/test_performance.py | 1401 | # ============================================================================= | COMMENT |
| MEDIUM | tests/data/openapi/type_alias_recursive.yaml | 10 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/data/openapi/type_alias_recursive.yaml | 12 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/data/openapi/type_alias_recursive.yaml | 57 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/data/openapi/type_alias_recursive.yaml | 59 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/arguments.py | 1371 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/arguments.py | 1373 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/arguments.py | 1382 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/arguments.py | 1384 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 193 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 195 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 365 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 367 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 697 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 699 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 931 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 933 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1117 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1119 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1287 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1289 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1347 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1349 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1561 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1563 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 888 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 890 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 892 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 894 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 167 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 169 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 183 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 185 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 435 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 437 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 498 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 500 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 701 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 703 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 840 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 842 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 975 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 977 | # ========================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_main_kr.py | 3476 | except PermissionError: | CODE |
| HIGH | tests/main/conftest.py | 1421 | except PydanticUndefinedAnnotation: | CODE |
| HIGH | tests/api_generation/support/fixture_websocket.py | 230 | except OSError: | CODE |
| HIGH | tests/api_generation/support/fixture_websocket.py | 168 | except OSError: | CODE |
| HIGH | scripts/build_cli_docs.py | 486 | except ValueError: | CODE |
| HIGH | src/datamodel_code_generator/util.py | 315 | except ImportError: | CODE |
| HIGH | src/datamodel_code_generator/types.py | 252 | except (TypeError, ValueError): | CODE |
| HIGH | src/datamodel_code_generator/types.py | 257 | except (TypeError, ValueError): | CODE |
| HIGH | src/datamodel_code_generator/http.py | 441 | except ValueError: | CODE |
| HIGH | src/datamodel_code_generator/_publication.py | 117 | except FileExistsError: # pragma: no cover - concurrent creation is re-opened and checked | CODE |
| HIGH | src/datamodel_code_generator/_client/protocols.py | 230 | except ValueError: | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 3860 | except Exception: # noqa: BLE001, S110 | CODE |
| HIGH | src/datamodel_code_generator/parser/base.py | 1184 | except RecursionError: # pragma: no cover | CODE |
| HIGH | …odel_code_generator/_runtime/protocols/verification.py | 92 | except UnsupportedKeyError: | CODE |
| HIGH | …datamodel_code_generator/_runtime/protocols/streams.py | 707 | except UnicodeDecodeError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/main/test_dynamic_models.py | 1254 | ("utils.py",): "def helper(): pass", | CODE |
| LOW | …a/ci_shards/tree/tests/main/test_payload_validation.py | 9 | def helper(): | CODE |
| LOW | …a/ci_shards/tree/tests/main/test_payload_validation.py | 20 | def helper(self): | CODE |
| LOW | tests/api_generation/support/fixture_server.py | 248 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | tests/api_generation/scenarios/client_uploads.py | 1081 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | tests/api_generation/scenarios/client_webhooks.py | 297 | def helper(self, name: str) -> ModuleType: | CODE |
| LOW | tests/api_generation/scenarios/client_deadline_races.py | 157 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | tests/api_generation/scenarios/client_oauth.py | 93 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | …ts/api_generation/scenarios/client_webhook_adapters.py | 316 | def helper(self, name: str) -> ModuleType: | CODE |
| LOW | tests/api_generation/scenarios/client_streams.py | 155 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | …ts/api_generation/scenarios/client_deadline_options.py | 139 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | …ts/api_generation/scenarios/client_deadline_cleanup.py | 66 | def handle_request(self, request: httpx2.Request) -> httpx2.Response: | CODE |
| LOW | src/datamodel_code_generator/http.py | 95 | def handle_request(self, request: _HTTPTransportRequest) -> _HTTPResponse: ... | CODE |
| LOW | src/datamodel_code_generator/http.py | 275 | def handle_request(self, request: _HTTPCoreRequest) -> _HTTPCoreResponse: ... | CODE |
| LOW | src/datamodel_code_generator/http.py | 630 | def handle_request(self, request: _HTTPTransportRequest) -> _HTTPResponse: | CODE |
| LOW | src/datamodel_code_generator/_client/streams.py | 151 | def helper( | CODE |
| LOW | src/datamodel_code_generator/_client/protocols.py | 398 | def helper(self, name: str, value: object, at: str) -> Helper | None: | CODE |
| LOW | src/datamodel_code_generator/_client/caching.py | 62 | def helper(self, helper: Helper, spec: OperationSpec) -> tuple[CacheSpec | None, list[Diagnostic]]: | CODE |
| LOW | src/datamodel_code_generator/_client/uploads.py | 88 | def helper(self, helper: Helper) -> tuple[UploadSpec | None, list[Diagnostic]]: | CODE |
| LOW | src/datamodel_code_generator/_client/pagination.py | 319 | def helper(self, helper: Helper, spec: OperationSpec) -> tuple[PaginationSpec | None, list[Diagnostic]]: | CODE |
| LOW | src/datamodel_code_generator/_client/polling.py | 136 | def helper(self, helper: Helper) -> tuple[PollingSpec | None, list[Diagnostic]]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/main/test_dynamic_models.py | 1166 | "Person": {"name": "John", "address": {"street": "123 Main St", "city": "NYC"}}, | CODE |
| LOW | …expected/dynamic_models/generated_code_validation.json | 5 | "street": "123 Main St", | CODE |
| LOW | …in_use_inline_field_description_with_example/output.py | 14 | examples=['John Doe'], | CODE |
| LOW | …in_use_inline_field_description_with_example/output.py | 20 | Example: 'John Doe' | STRING |
| LOW | …main_use_field_description_example_dataclass/output.py | 14 | Example: 'John Doe' | STRING |
| LOW | …in_use_inline_field_description_example_only/output.py | 11 | name: str | None = Field(None, description='User name.', examples=['John Doe']) | CODE |
| LOW | …in_use_inline_field_description_example_only/output.py | 13 | Example: 'John Doe' | STRING |
| LOW | …xpected/main/jsonschema/external_files_in_directory.py | 48 | name: str = Field(..., examples=['John Doe']) | CODE |
| LOW | …n/jsonschema/use_union_operator/definitions/friends.py | 16 | name: str = Field(..., examples=['John Doe']) | CODE |
| LOW | …schema/external_files_in_directory_collapse/friends.py | 15 | name: str = Field(..., examples=['John Doe']) | CODE |
| LOW | …ain/jsonschema/nested_directory/definitions/friends.py | 16 | name: str = Field(..., examples=['John Doe']) | CODE |
| LOW | …a/jsonschema/single_line_description_with_example.json | 9 | "example": "John Doe" | CODE |
| LOW | …ata/jsonschema/multiline_description_with_example.json | 9 | "example": "John Doe" | CODE |
| LOW | tests/data/jsonschema/allof_class_hierarchy.json | 115 | "default": "123 Main St" | CODE |
| LOW | …a/external_files_in_directory/definitions/friends.json | 10 | "example": "John Doe" | CODE |
| LOW | docs/dynamic-model-generation.md | 107 | person = Person(name="Bob", address={"street": "123 Main St", "city": "NYC"}) | CODE |
| LOW | docs/dynamic-model-generation.md | 109 | # {'name': 'Bob', 'address': {'street': '123 Main St', 'city': 'NYC'}} | COMMENT |
| LOW | docs/cli-reference/field-customization.md | 3944 | "example": "John Doe" | CODE |
| LOW | docs/cli-reference/field-customization.md | 3968 | examples=['John Doe'], | CODE |
| LOW | docs/cli-reference/field-customization.md | 3974 | Example: 'John Doe' | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/datamodel_code_generator/__init__.py | 1734 | Generate Python data models from schema definitions or structured data. This is the main entry point for code gener | STRING |
| HIGH | src/datamodel_code_generator/input_model.py | 1726 | Load schema from a Python import path. Args: input_model: Import path in 'module.path:ObjectName' format | STRING |
| HIGH | src/datamodel_code_generator/parser/base.py | 1364 | Check if reference is in an ancestor package (__init__.py). When the reference's module path is an ancestor (prefix | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/parser/test_jsonschema.py | 5062 | # Set raw_obj to None to trigger exception in _load_ref_schema_object | COMMENT |
| LOW | scripts/build_schema_docs.py | 8 | python scripts/build_schema_docs.py --check # Check if docs are up to date | STRING |
| LOW | scripts/build_cli_docs.py | 423 | # Check if this line starts a new admonition | COMMENT |
| LOW | scripts/build_cli_docs.py | 435 | # Check if we're still in the admonition (indented content or empty line) | COMMENT |
| LOW | .github/workflows/release-draft.yaml | 425 | # Check if draft release exists (use jq to extract first draft tag safely) | COMMENT |
| LOW⚡ | src/datamodel_code_generator/reference.py | 1393 | # Check if it's a direct child (not nested) | COMMENT |
| LOW⚡ | src/datamodel_code_generator/reference.py | 1409 | # Check if this is an external reference (different file) | COMMENT |
| LOW | src/datamodel_code_generator/parser/base.py | 3809 | # Check if default list elements are hashable before converting type | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_main_kr.py | 4495 | # Create a pyproject.toml with snake-case-field to demonstrate ignoring | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1885 | # Create a GenericAlias with origin=list but args=() - hits line 365 | COMMENT |
| MEDIUM | tests/test_types.py | 456 | # Create a shared DataType referenced by multiple parents | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/development-contributing.md | 217 | ### Step 1: Implement the option (Required) | COMMENT |
| LOW | docs/development-contributing.md | 229 | ### Step 2: Add a test with documentation marker (Required) | COMMENT |
| LOW | docs/development-contributing.md | 254 | ### Step 3: Categorize the option (Optional) | COMMENT |
| LOW | docs/development-contributing.md | 268 | ### Step 4: Generate and verify documentation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/model/dataclass/test_param.py | 122 | """Test dataclass generation with kw_only=True only (comprehensive test).""" | STRING |
| MEDIUM | tests/main/openapi/test_main_openapi.py | 9236 | """Apply both JSON Schema conditional branches from the comprehensive fixture.""" | STRING |
| MEDIUM | scripts/benchmark_builtin_templates.py | 72 | """Return a robust median per-call duration in microseconds.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate_changelog.sh | 3 | # Usage: | COMMENT |