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

Add --default-values CLI option for overriding field defaults

#2897Merged
Comparing
feature/default-values-override
(
78818a5
) with
main
(
99aac7b
)
CodSpeed Performance Gauge
-4%
Untouched
11
Skipped
98

Benchmarks

109 total
test_perf_deep_nested
tests/main/test_performance.py
CodSpeed Performance Gauge
-1%
5.9 s5.9 s
test_perf_all_options_enabled
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
6.6 s6.7 s
test_perf_aws_style_openapi_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-3%
1.9 s2 s
test_perf_stripe_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-3%
2 s2 s
test_perf_complex_refs
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
2 s2.1 s
test_perf_duplicate_names
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
991.9 ms1,032.6 ms
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
-5%
807.8 ms846 ms
test_perf_openapi_large
tests/main/test_performance.py
CodSpeed Performance Gauge
-5%
2.8 s3 s
test_perf_multiple_files_input
tests/main/test_performance.py
CodSpeed Performance Gauge
-5%
3.7 s3.9 s
test_perf_large_models_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-6%
3.6 s3.8 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
99aac7b
+4.97%
docs: update CLI reference documentation and prompt data
2793acb
4 months ago
by github-actions[bot]
+5.57%
Remove line comments and add flat key test coverage
f59ca58
4 months ago
by koxudaxi
-7.55%
Remove line comments from parser files
88443d6
4 months ago
by koxudaxi
+2.38%
Simplify resolve_default_value by removing redundant class_name check
1126a80
4 months ago
by koxudaxi
-1.13%
DRY JSON config loading with _load_json_config helper
9bf0998
4 months ago
by koxudaxi
-0.32%
Add test for custom_formatters_kwargs validation error
afca73b
4 months ago
by koxudaxi
+1.04%
Handle class_name=None edge case and add allOf inheritance test
169bacf
4 months ago
by koxudaxi
-0.86%
Fix flat overrides skipped when class_name is None
2ec4de8
4 months ago
by koxudaxi
-7.83%
Merge main into feature/default-values-override
78818a5
4 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs