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

feat: Default to union operator for type hints

#2703Merged
Comparing
feat/default-union-operator
(
bec6c81
) with
main
(
1b5d3fb
)
CodSpeed Performance Gauge
+2%
Untouched
52
Skipped
10

Benchmarks

10 total
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*

Commits

Click on a commit to change the comparison range
Base
main
1b5d3fb
+2.5%
docs: update CLI reference documentation
9cf74cd
5 months ago
by github-actions[bot]
-0.04%
docs: update CLI reference documentation
7ef3ae5
5 months ago
by github-actions[bot]
-0.19%
Merge branch 'main' into feat/default-union-operator
9b82f93
5 months ago
by koxudaxi
+0.31%
Merge branch 'main' into feat/default-union-operator
f5d103f
5 months ago
by koxudaxi
-0.19%
feat: Enhance type hinting by replacing Optional with Union and adding support for native union types
b4c2e1a
5 months ago
by koxudaxi
-0.09%
feat: Add LEGACY_BLACK_SKIP decorator to JSON Schema test functions
76c58ba
5 months ago
by koxudaxi
+0.01%
feat: Apply LEGACY_BLACK_SKIP decorator to relevant test functions
6e4ff4f
5 months ago
by koxudaxi
+0.05%
feat: Add coverage pragma to type hint method return
bec6c81
5 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs