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

Add --naming-strategy and --duplicate-name-suffix CLI options

#2761Merged
Comparing
feature/naming-strategy-option
(
d50e389
) with
main
(
419b1c2
)
CodSpeed Performance Gauge
0%
Untouched
73
Skipped
10

Benchmarks

83 total
test_main_use_default_factory_for_optional_nested_models_with_dict[msgspec.Struct-default_factory_nested_model_with_dict_msgspec.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
+1%
59.9 ms59.2 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
40.6 ms40.4 ms
test_main_nested_lookaround_array_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
57.4 ms57.2 ms
test_main_yaml
tests/main/test_main_yaml.py
CodSpeed Performance Gauge
0%
34.4 ms34.4 ms
test_main_inheritance_forward_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
105.9 ms105.9 ms
test_main_use_frozen_field[pydantic_v2.BaseModel-use_frozen_field_v2.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
52.1 ms52.1 ms
test_main_lookaround_anyof_nullable_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
56 ms56 ms
test_main_allof_root_model_constraints_none
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
271.9 ms272 ms
test_main_nested_lookaround_array_standard_collections
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
57.2 ms57.2 ms
test_main_inheritance_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
105.9 ms105.9 ms
test_main_allof_root_model_constraints_merge
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
272.9 ms273 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
51.4 ms51.4 ms
test_main_jsonschema_nested_deep
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
66.5 ms66.6 ms
test_main_use_frozen_field[pydantic.BaseModel-use_frozen_field_v1.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
46.2 ms46.2 ms
test_main_allof_root_model_constraints_merge_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
310.6 ms310.8 ms
test_main_bundled_schema_with_id_local_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
66.8 ms66.9 ms
test_main_bundled_schema_with_id_url
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
71.6 ms71.7 ms
test_use_default
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
117.9 ms118 ms
test_main_strict_types
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
69 ms69.1 ms
test_main_pydantic_v2_model_rebuild_inheritance
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
55.4 ms55.4 ms
test_main_lookaround_dict_standard_collections
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
53 ms53.1 ms
test_main_jsonschema_special_field_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
52.4 ms52.5 ms
test_main_root_id_jsonschema_self_refs_with_remote_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
74.5 ms74.6 ms
test_main_root_model_config_frozen
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
67.8 ms67.8 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
38.1 ms38.1 ms

Commits

Click on a commit to change the comparison range
Base
main
419b1c2
-0.01%
Add --naming-strategy and --duplicate-name-suffix CLI options
f1ac24b
4 months ago
by koxudaxi
-0.05%
style: fix ruff format
df741ee
4 months ago
by koxudaxi
-0.1%
test: achieve 100% diff coverage for naming strategy
d50e389
4 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs