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

Fix crash when parsing enum containing only null value

#2674Merged
Comparing
fix/null-only-enum-crash
(
7b77df6
) with
main
(
f42c49f
)
CodSpeed Performance Gauge
0%
Untouched
50
Skipped
3

Benchmarks

3 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*

Commits

Click on a commit to change the comparison range
Base
main
f42c49f
+0.03%
Fix handling of empty enums to return null type when not nullable and add tests for null-only enum generation
7b77df6
5 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs