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

Fix use_union_operator with Python builtin type field names

#2968Merged
Comparing
fix/builtin-type-field-names
(
1f22222
) with
main
(
9554fb6
)
CodSpeed Performance Gauge
+1%
Untouched
11
Skipped
98

Benchmarks

109 total
test_perf_openapi_large
tests/main/test_performance.py
CodSpeed Performance Gauge
+3%
2.9 s2.8 s
test_perf_aws_style_openapi_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
+2%
1.9 s1.9 s
test_perf_kubernetes_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
+2%
2.6 s2.6 s
test_perf_stripe_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
+2%
2 s1.9 s
test_perf_duplicate_names
tests/main/test_performance.py
CodSpeed Performance Gauge
+2%
1,010.5 ms995.4 ms
test_perf_all_options_enabled
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
6.7 s6.6 s
test_perf_multiple_files_input
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
3.7 s3.7 s
test_perf_deep_nested
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
6 s5.9 s
test_perf_graphql_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
819.1 ms811.2 ms
test_perf_complex_refs
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
2 s2 s
test_perf_large_models_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-1%
3.6 s3.7 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
9554fb6
+0.88%
Fix use_union_operator with Python builtin type field names
d252269
2 months ago
by koxudaxi
-1.77%
Simplify container type check with direct attribute access
a3988fc
2 months ago
by koxudaxi
+1.77%
Add parameterized test for --no-use-union-operator
1636986
2 months ago
by koxudaxi
-2.57%
Merge branch 'main' into fix/builtin-type-field-names
744f373
1 month ago
by koxudaxi
+0.2%
Fix builtin field rename after snake_case normalization
a5ce41b
1 month ago
by koxudaxi
-0.17%
Add coverage for builtin field rename branches
c5e5fb5
1 month ago
by koxudaxi
-1.07%
Replace builtin rename unit tests with e2e coverage
fdc5a84
1 month ago
by koxudaxi
-0.04%
Use match and walrus in builtin field collision check
4574fd1
1 month ago
by koxudaxi
+22.15%
Fix CodeQL warning in builtin collision matcher
f956271
1 month ago
by koxudaxi
-21.52%
Fix builtin field rename for target Python versions
36fc6a4
1 month ago
by koxudaxi
+21.62%
Fix black compatibility for target Python version test
6c165ab
1 month ago
by koxudaxi
-20.13%
Fix builtin collision coverage for dict container handling
483f79b
1 month ago
by koxudaxi
-0.66%
Fix builtin collision check without awkward pattern matching
af7f7f8
1 month ago
by koxudaxi
+2.74%
Merge branch 'main' into fix/builtin-type-field-names
1f22222
1 month ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs