Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON/YAML/CSV.
This report presents the forensic synthetic code analysis of koxudaxi/datamodel-code-generator, a Python project with 4,007 GitHub stars. SynthScan v2.0 examined 520,359 lines of code across 4566 source files, recording 9248 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 17.5 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 9248 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 | 251 | def test_assert_parser_modules_rejects_missing_expected_module(tmp_path: Path) -> None: | CODE |
| LOW⚡ | tests/test_conftest_helpers.py | 261 | def test_assert_parser_modules_rejects_unexpected_module(tmp_path: Path) -> None: | CODE |
| LOW⚡ | tests/test_conftest_helpers.py | 270 | def test_assert_inputs_not_mutated_allows_unchanged_nested_values() -> None: | CODE |
| LOW⚡ | tests/test_conftest_helpers.py | 278 | def test_assert_inputs_not_mutated_reports_nested_mutation() -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 46 | def test_assert_exact_directory_content_reports_diff(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 62 | def test_assert_file_content_matches_inline_snapshot_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 83 | def test_assert_file_content_matches_inactive_external_file(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 99 | def test_assert_file_content_rejects_mismatched_inactive_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 119 | def test_assert_file_content_missing_inline_snapshot_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 145 | def test_assert_file_content_handles_storage_lookup_error(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 156 | def raise_storage_lookup_error(_expected: object, _which: str) -> object: | CODE |
| LOW | tests/test_conftest_helpers.py | 167 | def test_assert_file_content_reports_failed_inline_snapshot_update( | CODE |
| LOW | tests/test_conftest_helpers.py | 201 | def test_assert_file_content_mismatched_inline_snapshot_external_file( | CODE |
| LOW | tests/test_conftest_helpers.py | 230 | def test_assert_parser_results_rejects_unexpected_result(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 240 | def test_assert_parser_results_rejects_missing_result(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 289 | def test_assert_path_cache_evicts_lru_entries_reports_first_mismatch(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 309 | def test_assert_path_cache_evicts_lru_entries_reports_second_mismatch(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 328 | def test_builtin_parity_mock_call_preservation(mocker: MockerFixture) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 342 | def test_builtin_parity_prance_mock_detection(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 353 | def test_builtin_parity_cli_formatter_helpers(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 385 | def test_builtin_parity_clear_output_path(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 399 | def test_default_formatter_cli_args(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 442 | def test_builtin_default_formatter_config(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 462 | def test_default_formatter_main_generation_detection() -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 474 | def test_default_formatter_generate_options(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 493 | def test_builtin_parity_generated_python_comparison(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 512 | def test_builtin_cli_formatter_parity_file_path(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 549 | def test_builtin_cli_formatter_parity_stdin_path(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 578 | def test_builtin_generate_formatter_parity(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_conftest_helpers.py | 603 | def test_builtin_generate_formatter_parity_preserves_warnings(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> 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 | 117 | def test_remote_lock_commit_resolves_a_relative_target_from_the_current_directory( | CODE |
| LOW | tests/test_remote_lock.py | 131 | def test_nearest_existing_directory_rejects_a_nonexistent_path_root( | CODE |
| LOW | tests/test_remote_lock.py | 148 | def test_windows_staging_fallback_fails_closed_after_its_private_path_is_replaced( | CODE |
| LOW | tests/test_remote_lock.py | 172 | def test_windows_staging_fallback_rejects_a_replaced_anchor_before_creating_a_private_directory( | CODE |
| LOW | tests/test_remote_lock.py | 190 | def test_windows_staging_fallback_rejects_a_removed_anchor_before_creating_a_private_directory( | CODE |
| LOW | tests/test_remote_lock.py | 204 | def test_staging_directory_handles_deleted_sources_closed_handles_and_cleanup_failures( | CODE |
| LOW | tests/test_remote_lock.py | 261 | def test_staging_directory_fails_closed_for_unavailable_private_names( | CODE |
| LOW | tests/test_remote_lock.py | 284 | def collide_with_reserved_name(*_args: object, **_kwargs: object) -> int: | CODE |
| LOW | tests/test_remote_lock.py | 306 | def test_staging_directory_path_fallback_cleanup_does_not_require_descriptors(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 330 | def test_descriptor_publication_error_and_rollback_primitives_preserve_private_entries( | CODE |
| LOW | tests/test_remote_lock.py | 424 | def test_descriptor_publication_copy_and_journal_failure_paths_use_real_files( | CODE |
| LOW | tests/test_remote_lock.py | 495 | def fail_created_directory_removal(*_args: object, **_kwargs: object) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 511 | def test_path_publication_helpers_preserve_modes_and_own_only_created_directories( | CODE |
| LOW | tests/test_remote_lock.py | 550 | def test_path_publication_helpers_preserve_posix_modes(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 564 | def test_remote_lock_legacy_staging_reuses_and_discards_one_private_file(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 581 | def test_remote_lock_commit_rejects_legacy_path_staging_without_leaking_a_temporary_file(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_remote_lock.py | 599 | def test_remote_lock_stage_is_inactive_after_commit_or_without_update(tmp_path: Path) -> None: | CODE |
| 5127 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 | 1265 | CODE | |
| LOW | tests/conftest.py | 1266 | CODE | |
| LOW | tests/conftest.py | 1267 | CODE | |
| LOW | tests/conftest.py | 1268 | CODE | |
| LOW | tests/conftest.py | 1269 | CODE | |
| LOW | tests/conftest.py | 1271 | 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_imports.py | 3 | CODE | |
| LOW | tests/test_deprecations.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/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_validate_release_draft_analysis_script.py | 3 | CODE | |
| LOW | tests/test_enums.py | 3 | CODE | |
| LOW | tests/test_input_model_transport.py | 3 | CODE | |
| LOW | tests/test_http.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_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_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_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_input_model.py | 3 | CODE | |
| LOW | tests/test_types.py | 3 | CODE | |
| LOW | tests/test_types.py | 248 | CODE | |
| LOW | tests/test_types.py | 269 | CODE | |
| LOW | tests/test_types.py | 405 | CODE | |
| LOW | tests/test_types.py | 432 | CODE | |
| LOW | tests/test_types.py | 461 | CODE | |
| LOW | tests/test_types.py | 476 | CODE | |
| LOW | tests/test_types.py | 512 | CODE | |
| LOW | tests/test_types.py | 534 | CODE | |
| LOW | tests/test_types.py | 548 | CODE | |
| 2922 more matches not shown… | ||||
| 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 | …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/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 | …ta/expected/main/graphql/union_description_cr_py312.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/additional_imports.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/interface_mro.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …xpected/main/graphql/pydantic_v2_empty_list_default.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/custom_formatters.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/enums.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/empty_list_default.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …/data/expected/main/graphql/union_class_name_prefix.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ed/main/graphql/simple_star_wars_extra_fields_allow.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …sts/data/expected/main/graphql/enums_no_specialized.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/simple_star_wars.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …d/main/graphql/simple_star_wars_dataclass_arguments.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ected/main/graphql/union_description_cr_pydantic_v2.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ta/expected/main/graphql/simple_star_wars_dataclass.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …n/graphql/graphql_serialization_aliases_pydantic_v2.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …expected/main/graphql/enums_ignore_enum_constraints.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ed/main/graphql/default_values_required_use_default.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/field_default_enum.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | tests/data/expected/main/graphql/no_typename.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| HIGH | …ata/expected/main/graphql/different_types_of_fields.py | 0 | the `boolean` scalar type represents `true` or `false`. | STRING |
| 142 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_remote_lock.py | 695 | ('{"version":1,"resources":[null]}', "each resource must be an object"), | CODE |
| HIGH⚡ | tests/test_build_release_benchmark_docs_script.py | 441 | '{"releases": [null, {"version": "", "uploaded_at": "2026-06-19T00:00:00Z"}]}', | CODE |
| HIGH | tests/test_build_release_benchmark_docs_script.py | 476 | non_object_entry.write_text('{"schema_version": 1, "metadata": {}, "entries": [null]}', encoding="utf-8") | CODE |
| 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/openapi/test_main_openapi.py | 2913 | valid_json='{"requiredNullable": null, "nullableUnrequired": null}', | CODE |
| HIGH | tests/main/openapi/test_main_openapi.py | 4094 | valid_json='{"metadataOnly": null, "newRequired": 1}', | CODE |
| HIGH | tests/main/payload_validation/conformance.py | 391 | "OpenAPI msgspec full-matrix coverage remains representative until backend-specific enum, null, " | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 1060 | valid_json='{"required": 1, "requiredNullable": null, "nullableUnrequired": null}', | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 1061 | invalid_json='{"required": 1, "requiredNullable": null, "unrequired": null}', | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 5602 | invalid_json=('{"direct":[],"textOrList":[],"nullablePattern":{"name":null},"options":[{"name":""}]}'), | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 5607 | ('{"direct":["a","b","c"],"textOrList":[],"nullablePattern":{"name":null},"options":[{"name":""}]}'), | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 5611 | '{"direct":"","textOrList":[],"nullablePattern":{"name":null},"options":[{"name":[]}]}', | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 5615 | '{"direct":"","textOrList":[],"nullablePattern":{"name":null},"options":[{"name":1}]}', | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 5619 | '{"direct":"","textOrList":"x","nullablePattern":{"name":null},"options":[{"name":""}]}', | CODE |
| HIGH⚡ | tests/main/jsonschema/test_main_jsonschema.py | 5623 | '{"direct":"","textOrList":[],"nullablePattern":{"name":null},"options":[]}', | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 5589 | '{"direct":"","textOrList":[],"nullablePattern":{"name":null},' | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 5689 | invalid_json=('{"direct":[],"textOrList":[],"nullablePattern":{"name":null},"options":[{"name":""}]}'), | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 6674 | '"rootMap":{"ok":2},"nullableValueMap":{"nil":null,"ok":1},' | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 6677 | '"nullableAllOfValueMap":{"nil":null,"ok":5},' | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 6796 | '"nullableValueMap":{"nil":null,"ok":1}', | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 6816 | '"nullableAllOfValueMap":{"nil":null,"ok":5}', | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 6885 | '"nullableAllOfValueMap":{"nil":null,"ok":5}', | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 6904 | '"nullableValueMap":{"nil":null,"ok":1}', '"nullableValueMap":null' | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 8144 | invalid_json='{"type":"s3","value":null}', | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 8286 | valid_json='{"name":"root","child":{"name":"leaf"},"empty":null}', | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 12418 | invalid_json='{"values":null}', | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 15548 | '"jsonValues":[true,1],"nested":[["first"]],"nullableAnyOf":null}' | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 15684 | '"jsonValues":[true,1],"nested":[["first"]],"nullableAnyOf":null}' | CODE |
| HIGH | tests/main/jsonschema/test_main_jsonschema.py | 6360 | """Test that type: [type, null] from $ref schema is propagated.""" | STRING |
| HIGH | src/datamodel_code_generator/parser/schema_version.py | 659 | "null": {"default": Types.null}, | CODE |
| HIGH⚡ | src/datamodel_code_generator/parser/jsonschema.py | 1856 | return self.data_type_manager.get_data_type(Types.null) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 2943 | else self.data_type_manager.get_data_type(Types.null) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 9344 | data_types.append(self.data_type_manager.get_data_type(Types.null)) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 9464 | return self.data_type_manager.get_data_type(Types.null) | CODE |
| HIGH | src/datamodel_code_generator/parser/jsonschema.py | 9481 | data_type=self.data_type_manager.get_data_type(Types.null), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_input_model.py | 811 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 813 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 919 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 921 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 991 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 993 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1290 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1292 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1809 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1811 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | tests/parser/test_schema_version.py | 1279 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/parser/test_schema_version.py | 1281 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1087 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1089 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1342 | # ============================================================================= | COMMENT |
| MEDIUM | tests/parser/test_schema_version.py | 1344 | # ============================================================================= | COMMENT |
| MEDIUM | tests/main/test_performance.py | 1234 | # ============================================================================= | COMMENT |
| MEDIUM | tests/main/test_performance.py | 1237 | # ============================================================================= | 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 | 1342 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/arguments.py | 1344 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/arguments.py | 1353 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/arguments.py | 1355 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 178 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 180 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 350 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 352 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 678 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 680 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 912 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 914 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1097 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1099 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1258 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1260 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1318 | # ====================================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/arguments.py | 1320 | # ====================================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 887 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 889 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 891 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | src/datamodel_code_generator/cli_options.py | 893 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 166 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 168 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 182 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 184 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 434 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 436 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 497 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 499 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 700 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 702 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 839 | # ========================================================================== | COMMENT |
| MEDIUM | src/datamodel_code_generator/cli_options.py | 841 | # ========================================================================== | COMMENT |
| 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 | 86 | def _setup_and_clear_cache() -> None: | CODE |
| LOW | tests/main/payload_validation/__init__.py | 46 | __all__ = [ | CODE |
| LOW⚡ | tests/main/payload_validation/schema.py | 282 | def _set_default_openapi_object_type(schema: dict[str, Any]) -> None: | CODE |
| LOW⚡ | tests/main/payload_validation/schema.py | 291 | def _set_discriminator_mapping_enum(schema: dict[str, Any], source_schema: dict[str, Any]) -> None: | CODE |
| LOW | tests/main/payload_validation/schema.py | 444 | def _set_discriminator_property_constraint(schema: dict[str, Any], property_name: str, tags: list[str]) -> None: | CODE |
| LOW | tests/main/payload_validation/schema.py | 586 | def _set_payload_format_enum(schema: dict[str, Any]) -> None: | CODE |
| LOW | tests/data/architecture_boundaries/shared/forbidden.py | 3 | __all__ = ["stable_toposort"] | CODE |
| LOW | tests/data/python/decimal_compat.py | 7 | __all__ = ["Decimal"] | 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 | …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 | …api/modular_all_exports_children_docstring/__init__.py | 11 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …modular_all_exports_children_docstring/foo/__init__.py | 11 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …modular_all_exports_children_docstring/woo/__init__.py | 11 | __all__ = [ | CODE |
| LOW | …i/modular_all_exports_children_docstring/nested/foo.py | 13 | __all__ = ["List", "Tea", "TeaClone"] | CODE |
| LOW | …/main/openapi/no_use_type_checking_imports/__init__.py | 6 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …n/openapi/no_use_type_checking_imports/foo/__init__.py | 6 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …ain/openapi/no_use_type_checking_imports/nested/foo.py | 6 | __all__ = ["List", "Tea", "TeaClone"] | CODE |
| LOW | …expected/main/openapi/all_exports_no_child/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …expected/main/openapi/modular_info_version/__init__.py | 10 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …neric_container_types_standard_collections/__init__.py | 7 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …c_container_types_standard_collections/foo/__init__.py | 7 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …ric_container_types_standard_collections/nested/foo.py | 9 | __all__ = ["List", "Tea", "TeaClone"] | CODE |
| LOW | …penapi/circular_imports_different_prefixes/__init__.py | 7 | __all__ = ["Root"] | CODE |
| LOW | …penapi/circular_imports_different_prefixes/beta/sub.py | 7 | __all__ = ["Model"] | CODE |
| LOW | …enapi/circular_imports_different_prefixes/gamma/sub.py | 7 | __all__ = ["Model"] | CODE |
| LOW | …enapi/circular_imports_different_prefixes/alpha/sub.py | 7 | __all__ = ["Model"] | CODE |
| LOW | …_pydantic_ruff_defaults_to_runtime_imports/__init__.py | 8 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …antic_ruff_defaults_to_runtime_imports/foo/__init__.py | 8 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …ydantic_ruff_defaults_to_runtime_imports/nested/foo.py | 9 | __all__ = ["List", "Tea", "TeaClone"] | CODE |
| LOW | …main/openapi/all_exports_with_local_models/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …/openapi/all_exports_with_local_models/pkg/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …format_code_fallback_on_error_init_exports/__init__.py | 6 | __all__ = ["DifferentTea", "Error", "Id", "Optional", "Result", "Source"] | CODE |
| LOW | …at_code_fallback_on_error_init_exports/foo/__init__.py | 6 | __all__ = ["Cocoa", "Tea"] | CODE |
| LOW | …at_code_fallback_on_error_init_exports/woo/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …rmat_code_fallback_on_error_init_exports/nested/foo.py | 6 | __all__ = ["List", "Tea", "TeaClone"] | CODE |
| LOW | …main/openapi/all_exports_collision_success/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …ted/main/openapi/modular_custom_class_name/__init__.py | 14 | __all__ = [ | CODE |
| LOW | …main/openapi/modular_custom_class_name/foo/__init__.py | 7 | __all__ = ["CustomCocoa", "CustomTea"] | CODE |
| LOW | …d/main/openapi/modular_custom_class_name/nested/foo.py | 9 | __all__ = ["CustomList", "CustomTea", "CustomTeaClone"] | CODE |
| LOW | …in/openapi/circular_imports_mixed_prefixes/__init__.py | 7 | __all__ = ["Root"] | CODE |
| LOW | …ain/openapi/circular_imports_mixed_prefixes/other/x.py | 7 | __all__ = ["Model"] | CODE |
| LOW | …in/openapi/circular_imports_mixed_prefixes/common/a.py | 7 | __all__ = ["Model"] | CODE |
| LOW | …in/openapi/circular_imports_mixed_prefixes/common/c.py | 7 | __all__ = ["Model"] | CODE |
| 124 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 1299 | except Exception as e: # pragma: no cover | CODE |
| LOW | tests/test_infer_input_type.py | 49 | except Exception as exc: | CODE |
| LOW | tests/main/test_cli_fast_paths.py | 685 | except Exception as exc: | CODE |
| MEDIUM | tests/main/conftest.py | 1262 | def _get_concurrent_interpreters_module() -> Any | None: | CODE |
| LOW | tests/main/conftest.py | 1300 | except Exception as exception: | STRING |
| LOW | tests/main/conftest.py | 1317 | except Exception as exception: # pragma: no cover | STRING |
| LOW | tests/main/payload_validation/codegen.py | 87 | except Exception as exception: | CODE |
| LOW | tests/main/payload_validation/codegen.py | 162 | except Exception as exc: | CODE |
| LOW | tests/main/payload_validation/codegen.py | 193 | except Exception as exc: | CODE |
| LOW⚡ | …/expected/main/jsonschema/unique_items_inline_paths.py | 283 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/expected/main/jsonschema/unique_items_inline_paths.py | 290 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …pected/main/jsonschema/unique_items_union_enum_root.py | 211 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …pected/main/jsonschema/unique_items_union_enum_root.py | 218 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …hema/unique_items_variant_root_alias_use_type_alias.py | 234 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …hema/unique_items_variant_root_alias_use_type_alias.py | 241 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …n/jsonschema/unique_items_property_alias_population.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …n/jsonschema/unique_items_property_alias_population.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_schema_validators.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_schema_validators.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ted/main/jsonschema/unique_items_additional_aliases.py | 233 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ted/main/jsonschema/unique_items_additional_aliases.py | 240 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …main/jsonschema/unique_items_union_ref_sibling_2020.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …main/jsonschema/unique_items_union_ref_sibling_2020.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …_items_property_alias_serialization_alias_generator.py | 211 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …_items_property_alias_serialization_alias_generator.py | 218 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …chema/unique_items_additional_aliases_serialization.py | 234 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …chema/unique_items_additional_aliases_serialization.py | 241 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …expected/main/jsonschema/unique_items_allof_mapping.py | 283 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …expected/main/jsonschema/unique_items_allof_mapping.py | 290 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ted/main/jsonschema/unique_items_variant_additional.py | 233 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ted/main/jsonschema/unique_items_variant_additional.py | 240 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ain/jsonschema/unique_items_draft7_additional_items.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ain/jsonschema/unique_items_draft7_additional_items.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/expected/main/jsonschema/unique_items_const_draft6.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …/expected/main/jsonschema/unique_items_const_draft6.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …d/main/jsonschema/unique_items_union_mapping_shapes.py | 211 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …d/main/jsonschema/unique_items_union_mapping_shapes.py | 218 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …main/jsonschema/unique_items_union_ref_mapping_root.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …main/jsonschema/unique_items_union_ref_mapping_root.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_variant_ownership.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_variant_ownership.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ected/main/jsonschema/unique_items_union_const_root.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ected/main/jsonschema/unique_items_union_const_root.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ed/main/jsonschema/unique_items_prefix_items_draft7.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …ed/main/jsonschema/unique_items_prefix_items_draft7.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …sonschema/unique_items_property_alias_serialization.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …sonschema/unique_items_property_alias_serialization.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_union_ref_mapping.py | 233 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_union_ref_mapping.py | 240 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …xpected/main/jsonschema/unique_items_property_alias.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …xpected/main/jsonschema/unique_items_property_alias.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …_items_variant_root_alias_use_root_model_type_alias.py | 233 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …_items_variant_root_alias_use_root_model_type_alias.py | 240 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_prefix_items_2020.py | 210 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …cted/main/jsonschema/unique_items_prefix_items_2020.py | 217 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …chema/schema_validators_runtime_root_cross_module/a.py | 212 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …chema/schema_validators_runtime_root_cross_module/a.py | 219 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …rty_count_cross_module/external_core_required_child.py | 248 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …rty_count_cross_module/external_core_required_child.py | 255 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | …erty_count_cross_module/external_core_unique_parent.py | 210 | except Exception: # noqa: BLE001 | CODE |
| 66 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 193 | CODE | |
| LOW | tests/conftest.py | 548 | CODE | |
| LOW | tests/main/conftest.py | 843 | CODE | |
| LOW | tests/main/test_performance.py | 1273 | CODE | |
| LOW | tests/main/test_payload_validation.py | 542 | CODE | |
| LOW | tests/main/payload_validation/cases.py | 67 | CODE | |
| LOW | tests/main/payload_validation/schema.py | 127 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_inline_paths.py | 24 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_inline_paths.py | 80 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_inline_paths.py | 140 | CODE | |
| LOW | …pected/main/jsonschema/unique_items_union_enum_root.py | 68 | CODE | |
| LOW | …alidators_property_count_root_collapse_generic_base.py | 30 | CODE | |
| LOW | …hema/unique_items_variant_root_alias_use_type_alias.py | 31 | CODE | |
| LOW | …hema/unique_items_variant_root_alias_use_type_alias.py | 91 | CODE | |
| LOW | …n/jsonschema/unique_items_property_alias_population.py | 67 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_schema_validators.py | 67 | CODE | |
| LOW | …ted/main/jsonschema/unique_items_additional_aliases.py | 30 | CODE | |
| LOW | …ted/main/jsonschema/unique_items_additional_aliases.py | 90 | CODE | |
| LOW | …main/jsonschema/unique_items_union_ref_sibling_2020.py | 67 | CODE | |
| LOW | …sts/data/expected/main/jsonschema/schema_validators.py | 36 | CODE | |
| LOW | …_items_property_alias_serialization_alias_generator.py | 68 | CODE | |
| LOW | …chema/unique_items_additional_aliases_serialization.py | 31 | CODE | |
| LOW | …chema/unique_items_additional_aliases_serialization.py | 91 | CODE | |
| LOW | …expected/main/jsonschema/unique_items_allof_mapping.py | 24 | CODE | |
| LOW | …expected/main/jsonschema/unique_items_allof_mapping.py | 80 | CODE | |
| LOW | …expected/main/jsonschema/unique_items_allof_mapping.py | 140 | CODE | |
| LOW | …ted/main/jsonschema/unique_items_variant_additional.py | 30 | CODE | |
| LOW | …ted/main/jsonschema/unique_items_variant_additional.py | 90 | CODE | |
| LOW | …ain/jsonschema/unique_items_draft7_additional_items.py | 67 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_const_draft6.py | 67 | CODE | |
| LOW | …d/main/jsonschema/unique_items_union_mapping_shapes.py | 68 | CODE | |
| LOW | …hema/schema_validators_property_count_root_collapse.py | 22 | CODE | |
| LOW | …main/jsonschema/unique_items_union_ref_mapping_root.py | 67 | CODE | |
| LOW | …/main/jsonschema/empty_field_name_schema_validators.py | 29 | CODE | |
| LOW | …ema/schema_validators_pattern_additional_properties.py | 22 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_variant_ownership.py | 67 | CODE | |
| LOW | …ected/main/jsonschema/unique_items_union_const_root.py | 67 | CODE | |
| LOW | …jsonschema/schema_validators_custom_base_class_name.py | 22 | CODE | |
| LOW | …ed/main/jsonschema/unique_items_prefix_items_draft7.py | 67 | CODE | |
| LOW | …sonschema/unique_items_property_alias_serialization.py | 67 | CODE | |
| LOW | …rties_value_constraints_annotated_schema_validators.py | 31 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_union_ref_mapping.py | 30 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_union_ref_mapping.py | 90 | CODE | |
| LOW | …xpected/main/jsonschema/unique_items_property_alias.py | 67 | CODE | |
| LOW | …_items_variant_root_alias_use_root_model_type_alias.py | 30 | CODE | |
| LOW | …_items_variant_root_alias_use_root_model_type_alias.py | 90 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_prefix_items_2020.py | 67 | CODE | |
| LOW | …chema/schema_validators_runtime_root_cross_module/a.py | 69 | CODE | |
| LOW | …rty_count_cross_module/external_core_pattern_parent.py | 22 | CODE | |
| LOW | …_validators_property_count_cross_module/core_parent.py | 22 | CODE | |
| LOW | …lidators_property_count_cross_module/property_child.py | 24 | CODE | |
| LOW | …a_validators_property_count_cross_module/core_child.py | 24 | CODE | |
| LOW | …rty_count_cross_module/external_core_required_child.py | 105 | CODE | |
| LOW | …erty_count_cross_module/external_core_unique_parent.py | 67 | CODE | |
| LOW | …perty_count_cross_module/external_core_unique_child.py | 26 | CODE | |
| LOW | …perty_count_cross_module/external_core_unique_child.py | 82 | CODE | |
| LOW | …perty_count_cross_module/external_core_unique_child.py | 142 | CODE | |
| LOW | …erty_count_cross_module/external_core_pattern_child.py | 26 | CODE | |
| LOW | …erty_count_cross_module/external_core_pattern_child.py | 120 | CODE | |
| LOW | …_count_cross_module/external_core_conditional_child.py | 91 | CODE | |
| 142 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 | 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 | …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 | …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 | …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 | …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 | …in/openapi/use_generic_container_types/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …openapi/use_generic_container_types/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …sts/data/expected/main/openapi/modular/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/data/expected/main/openapi/modular/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …enapi/modular_all_exports_recursive/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …main/openapi/dot_notation_deep_inheritance/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …imports_for_multi_module_pydantic_ruff/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …orts_for_multi_module_pydantic_ruff/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/main/openapi/use_standard_collections/woo/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …in/openapi/use_standard_collections/nested/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …cted/main/openapi/dot_notation_inheritance/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …i/dot_notation_root_package_inheritance/v0/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …pected/main/malformed/cross_file_empty_ref/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/main/jsonschema/reuse_type_overrides_tree/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ta/expected/main/jsonschema/non_dict_files/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …/expected/main/jsonschema/treat_dot_single/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …pected/main/jsonschema/treat_dot_single/v0/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …cted/main/jsonschema/treat_dot_single/v0/0/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …d/main/jsonschema/treat_dot_single/v0/0/39/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …ma/use_generic_base_class_deep_inheritance/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| LOW | …main/jsonschema/reuse_scope_tree_typeddict/__init__.py | 1 | # generated by datamodel-codegen: | COMMENT |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 1046 | CODE | |
| LOW | tests/main/conftest.py | 622 | CODE | |
| LOW | tests/main/conftest.py | 843 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 263 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 446 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 483 | CODE | |
| LOW | tests/main/test_public_api_signature_baseline.py | 632 | CODE | |
| LOW | …ead_only_write_only_variant_graph_schema_validators.py | 18 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_inline_paths.py | 21 | CODE | |
| LOW | …pected/main/jsonschema/unique_items_union_enum_root.py | 19 | CODE | |
| LOW | …alidators_property_count_root_collapse_generic_base.py | 27 | CODE | |
| LOW | …hema/unique_items_variant_root_alias_use_type_alias.py | 20 | CODE | |
| LOW | …n/jsonschema/unique_items_property_alias_population.py | 18 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_schema_validators.py | 18 | CODE | |
| LOW | …ted/main/jsonschema/unique_items_additional_aliases.py | 19 | CODE | |
| LOW | …main/jsonschema/unique_items_union_ref_sibling_2020.py | 18 | CODE | |
| LOW | …sts/data/expected/main/jsonschema/schema_validators.py | 33 | CODE | |
| LOW | …_items_property_alias_serialization_alias_generator.py | 19 | CODE | |
| LOW | …chema/unique_items_additional_aliases_serialization.py | 20 | CODE | |
| LOW | …expected/main/jsonschema/unique_items_allof_mapping.py | 21 | CODE | |
| LOW | …ted/main/jsonschema/unique_items_variant_additional.py | 19 | CODE | |
| LOW | …ain/jsonschema/unique_items_draft7_additional_items.py | 18 | CODE | |
| LOW | …ed/main/jsonschema/schema_validators_property_count.py | 28 | CODE | |
| LOW | …/expected/main/jsonschema/unique_items_const_draft6.py | 18 | CODE | |
| LOW | …d/main/jsonschema/unique_items_union_mapping_shapes.py | 19 | CODE | |
| LOW | …hema/schema_validators_property_count_root_collapse.py | 19 | CODE | |
| LOW | …main/jsonschema/unique_items_union_ref_mapping_root.py | 18 | CODE | |
| LOW | …/main/jsonschema/empty_field_name_schema_validators.py | 26 | CODE | |
| LOW | …ema/schema_validators_pattern_additional_properties.py | 19 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_variant_ownership.py | 18 | CODE | |
| LOW | …ected/main/jsonschema/unique_items_union_const_root.py | 18 | CODE | |
| LOW | …jsonschema/schema_validators_custom_base_class_name.py | 19 | CODE | |
| LOW | …ed/main/jsonschema/unique_items_prefix_items_draft7.py | 18 | CODE | |
| LOW | …sonschema/unique_items_property_alias_serialization.py | 18 | CODE | |
| LOW | …rties_value_constraints_annotated_schema_validators.py | 28 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_union_ref_mapping.py | 19 | CODE | |
| LOW | …xpected/main/jsonschema/unique_items_property_alias.py | 18 | CODE | |
| LOW | …_items_variant_root_alias_use_root_model_type_alias.py | 19 | CODE | |
| LOW | …cted/main/jsonschema/unique_items_prefix_items_2020.py | 18 | CODE | |
| LOW | …chema/schema_validators_runtime_root_cross_module/a.py | 20 | CODE | |
| LOW | …rty_count_cross_module/external_core_pattern_parent.py | 19 | CODE | |
| LOW | …_validators_property_count_cross_module/core_parent.py | 19 | CODE | |
| LOW | …tors_property_count_cross_module/conditional_parent.py | 18 | CODE | |
| LOW | …lidators_property_count_cross_module/property_child.py | 21 | CODE | |
| LOW | …a_validators_property_count_cross_module/core_child.py | 21 | CODE | |
| LOW | …rty_count_cross_module/external_core_required_child.py | 30 | CODE | |
| LOW | …erty_count_cross_module/external_core_unique_parent.py | 18 | CODE | |
| LOW | …perty_count_cross_module/external_core_unique_child.py | 23 | CODE | |
| LOW | …erty_count_cross_module/external_core_pattern_child.py | 23 | CODE | |
| LOW | …_count_cross_module/external_core_conditional_child.py | 22 | CODE | |
| LOW | …idators_property_count_cross_module/required_parent.py | 28 | CODE | |
| LOW | …rty_count_cross_module_generic_base/required_parent.py | 35 | CODE | |
| LOW | src/datamodel_code_generator/format.py | 518 | CODE | |
| LOW | src/datamodel_code_generator/types.py | 1217 | CODE | |
| LOW | src/datamodel_code_generator/http.py | 1090 | CODE | |
| LOW | src/datamodel_code_generator/reference.py | 290 | CODE | |
| LOW | src/datamodel_code_generator/reference.py | 613 | CODE | |
| LOW | src/datamodel_code_generator/reference.py | 1328 | CODE | |
| LOW | src/datamodel_code_generator/__main__.py | 2663 | CODE | |
| LOW | src/datamodel_code_generator/parser/base.py | 5853 | CODE | |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/main/test_dynamic_models.py | 731 | "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 | …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 | 118 | address={"street": "123 Main St", "city": "NYC"} | CODE |
| LOW | docs/dynamic-model-generation.md | 121 | # {'name': 'Bob', 'address': {'street': '123 Main St', 'city': 'NYC'}} | COMMENT |
| LOW | docs/cli-reference/field-customization.md | 3804 | "example": "John Doe" | CODE |
| LOW | docs/cli-reference/field-customization.md | 3826 | examples=['John Doe'], | CODE |
| LOW | docs/cli-reference/field-customization.md | 3832 | Example: 'John Doe' | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/datamodel_code_generator/__init__.py | 1752 | 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 | 983 | 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 | 1206 | 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 | 4875 | # 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 | 421 | # Check if this line starts a new admonition | COMMENT |
| LOW | scripts/build_cli_docs.py | 433 | # Check if we're still in the admonition (indented content or empty line) | COMMENT |
| LOW | .github/workflows/release-draft.yaml | 316 | # Check if draft release exists (use jq to extract first draft tag safely) | COMMENT |
| LOW⚡ | src/datamodel_code_generator/reference.py | 1139 | # Check if it's a direct child (not nested) | COMMENT |
| LOW⚡ | src/datamodel_code_generator/reference.py | 1155 | # Check if this is an external reference (different file) | COMMENT |
| LOW | src/datamodel_code_generator/parser/base.py | 3114 | # Check if default list elements are hashable before converting type | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_main_kr.py | 4290 | # Create a pyproject.toml with snake-case-field to demonstrate ignoring | COMMENT |
| MEDIUM⚡ | tests/test_input_model.py | 1853 | # Create a GenericAlias with origin=list but args=() - hits line 365 | COMMENT |
| MEDIUM | tests/test_types.py | 435 | # Create a shared DataType referenced by multiple parents | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/development-contributing.md | 143 | ### Step 1: Implement the option (Required) | COMMENT |
| LOW | docs/development-contributing.md | 155 | ### Step 2: Add a test with documentation marker (Required) | COMMENT |
| LOW | docs/development-contributing.md | 180 | ### Step 3: Categorize the option (Optional) | COMMENT |
| LOW | docs/development-contributing.md | 194 | ### Step 4: Generate and verify documentation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/main/test_dynamic_models.py | 823 | ("utils.py",): "def helper(): pass", | CODE |
| LOW | src/datamodel_code_generator/http.py | 94 | def handle_request(self, request: _HTTPTransportRequest) -> _HTTPResponse: ... | CODE |
| LOW | src/datamodel_code_generator/http.py | 274 | def handle_request(self, request: _HTTPCoreRequest) -> _HTTPCoreResponse: ... | CODE |
| LOW | src/datamodel_code_generator/http.py | 629 | def handle_request(self, request: _HTTPTransportRequest) -> _HTTPResponse: | CODE |
| 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 | 8763 | """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 |