Avatar for the koxudaxi user
koxudaxi
datamodel-code-generator
BlogDocsChangelog

Add --allow-remote-refs to disable HTTP fetching of $ref by default

#3051Merged
Comparing
butvinm:fix/allow-remote-refs
(
031ca0e
) with
main
(
7e1a5c7
)
CodSpeed Performance Gauge
-3%
Untouched
11
Skipped
98

Benchmarks

109 total
test_perf_deep_nested
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
6.1 s6 s
test_perf_complex_refs
tests/main/test_performance.py
CodSpeed Performance Gauge
0%
2.2 s2.2 s
test_perf_stripe_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-1%
2 s2 s
test_perf_all_options_enabled
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
6.5 s6.6 s
test_perf_openapi_large
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
3 s3 s
test_perf_duplicate_names
tests/main/test_performance.py
CodSpeed Performance Gauge
-3%
1.1 s1.1 s
test_perf_multiple_files_input
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
3.7 s3.9 s
test_perf_kubernetes_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
2.6 s2.7 s
test_perf_graphql_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
819.6 ms857.3 ms
test_perf_aws_style_openapi_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-5%
1.9 s2 s
test_perf_large_models_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-5%
3.7 s3.9 s
test_main_nested_directory
tests/main/jsonschema/test_main_jsonschema.py
Skipped
247.9 ms*
test_main_strict_types_all_with_field_constraints
tests/main/jsonschema/test_main_jsonschema.py
Skipped
81 ms*
test_main_jsonschema_complex_any_of
tests/main/jsonschema/test_main_jsonschema.py
Skipped
68 ms*
test_main_allof_root_model_constraints
tests/main/jsonschema/test_main_jsonschema.py
Skipped
287.1 ms*
test_main_use_frozen_field_dataclass
tests/main/jsonschema/test_main_jsonschema.py
Skipped
35.8 ms*
test_main_use_frozen_field_pydantic_v1
tests/main/jsonschema/test_main_jsonschema.py
Skipped
48.5 ms*
test_main_use_frozen_field_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
54 ms*
test_main_jsonschema_reserved_field_name_typed_dict
tests/main/jsonschema/test_main_jsonschema.py
Skipped
29 ms*
test_main_jsonschema_reserved_field_name_dataclass
tests/main/jsonschema/test_main_jsonschema.py
Skipped
29.8 ms*
test_main_jsonschema_reserved_field_name_pydantic
tests/main/jsonschema/test_main_jsonschema.py
Skipped
45.6 ms*
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
Skipped
39.3 ms*
test_main_allof_root_model_constraints_merge
tests/main/jsonschema/test_main_jsonschema.py
Skipped
262.9 ms*
test_main_lookaround_union_types_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
58.4 ms*
test_main_use_default_factory_for_optional_nested_models_with_dict[pydantic_v2.BaseModel-default_factory_nested_model_with_dict_pydantic_v2.py]
tests/main/jsonschema/test_main_jsonschema.py
Skipped
68.4 ms*

Commits

Click on a commit to change the comparison range
Base
main
7e1a5c7
-1.11%
Validate HTTP responses before parsing as schema content
c9502fb
20 days ago
by butvinm
+2.94%
Remove redundant local `import json` in test functions
4ece0ef
16 days ago
by butvinm
+1.85%
Add @pytest.mark.cli_doc marker for --allow-remote-refs
88c5c74
16 days ago
by butvinm
-0.27%
Set status_code and headers on httpx mock responses
1fa88c5
16 days ago
by butvinm
-2.04%
Use SchemaFetchError instead of bare Exception in HTTP responses
3dbf428
16 days ago
by butvinm
-1.53%
Wrap transport errors and normalize Content-Type check
5341a91
16 days ago
by butvinm
+2.8%
Harden test assertions for blocked and missing refs
cdf4360
16 days ago
by butvinm
-7.13%
Change --allow-remote-refs default to warn instead of block
2c325e6
15 days ago
by butvinm
+22.66%
Support --no-allow-remote-refs via BooleanOptionalAction
f69da18
13 days ago
by butvinm
-20.82%
Add --no-allow-remote-refs to CLI_OPTION_META
031ca0e
13 days ago
by butvinm
© 2026 CodSpeed Technology
Home Terms Privacy Docs