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

Fix: Objects with additionalProperties shouldn't be unioned with None by default

#2493
Comparing
erandagan:fix-additional-properties-nullability
(
ec56a57
) with
main
(
d97e532
)
CodSpeed Performance Gauge
0%
Untouched
32

Benchmarks

Passed

test_main_with_strip_default_none
tests/main/openapi/test_main_openapi.py::test_main_with_strip_default_none
CodSpeed Performance Gauge
0%
110.7 ms110.6 ms
test_main_jsonschema_required_and_any_of_required
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_required_and_any_of_required
CodSpeed Performance Gauge
0%
60.8 ms60.7 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py::test_main_all_of_ref
CodSpeed Performance Gauge
0%
53.4 ms53.3 ms
test_main_jsonschema_multiple_files
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_multiple_files
CodSpeed Performance Gauge
0%
79 ms79 ms
test_main_openapi_nullable_31
tests/main/openapi/test_main_openapi.py::test_main_openapi_nullable_31
CodSpeed Performance Gauge
0%
50.8 ms50.8 ms
test_main_inheritance_forward_ref
tests/main/jsonschema/test_main_jsonschema.py::test_main_inheritance_forward_ref
CodSpeed Performance Gauge
0%
102.4 ms102.4 ms
test_main_jsonschema_no_empty_collapsed_external_model
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_no_empty_collapsed_external_model
CodSpeed Performance Gauge
0%
50 ms50 ms
test_main_inheritance_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py::test_main_inheritance_forward_ref_keep_model_order
CodSpeed Performance Gauge
0%
100.9 ms100.9 ms
test_main_jsonschema_collapsed_external_references
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_collapsed_external_references
CodSpeed Performance Gauge
0%
77.1 ms77.1 ms
test_main_strict_types_all_with_field_constraints
tests/main/jsonschema/test_main_jsonschema.py::test_main_strict_types_all_with_field_constraints
CodSpeed Performance Gauge
0%
70.3 ms70.3 ms
test_main_root_id_jsonschema_self_refs_with_remote_file
tests/main/jsonschema/test_main_jsonschema.py::test_main_root_id_jsonschema_self_refs_with_remote_file
CodSpeed Performance Gauge
0%
81.2 ms81.2 ms
test_main_jsonschema_id
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_id
CodSpeed Performance Gauge
0%
54.8 ms54.8 ms
test_main_nested_directory
tests/main/jsonschema/test_main_jsonschema.py::test_main_nested_directory
CodSpeed Performance Gauge
0%
192.4 ms192.4 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_external_files
CodSpeed Performance Gauge
0%
52 ms52 ms
test_main_strict_types
tests/main/jsonschema/test_main_jsonschema.py::test_main_strict_types
CodSpeed Performance Gauge
0%
73.5 ms73.5 ms
test_main_jsonschema_nested_deep
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_nested_deep
CodSpeed Performance Gauge
0%
71.2 ms71.2 ms
test_main_jsonschema_complex_any_of
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_complex_any_of
CodSpeed Performance Gauge
0%
64.1 ms64.1 ms
test_main_modular
tests/main/openapi/test_main_openapi.py::test_main_modular
CodSpeed Performance Gauge
0%
242.9 ms243 ms
test_main_root_id_jsonschema_self_refs_with_local_file
tests/main/jsonschema/test_main_jsonschema.py::test_main_root_id_jsonschema_self_refs_with_local_file
CodSpeed Performance Gauge
0%
80.6 ms80.6 ms
test_main_json_reuse_enum_default_member
tests/main/jsonschema/test_main_jsonschema.py::test_main_json_reuse_enum_default_member
CodSpeed Performance Gauge
0%
74.7 ms74.7 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py::test_main_autodetect
CodSpeed Performance Gauge
0%
62.2 ms62.2 ms
test_main_jsonschema_special_field_name
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_special_field_name
CodSpeed Performance Gauge
0%
63 ms63 ms
test_main_collapse_root_models
tests/main/openapi/test_main_openapi.py::test_main_collapse_root_models
CodSpeed Performance Gauge
0%
77.2 ms77.2 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py::test_main_openapi_all_of_required
CodSpeed Performance Gauge
0%
54.3 ms54.3 ms
test_use_default
tests/main/openapi/test_main_openapi.py::test_use_default
CodSpeed Performance Gauge
0%
112.4 ms112.5 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py::test_main_external_definitions
CodSpeed Performance Gauge
0%
52.1 ms52.1 ms
test_main_jsonschema_field_include_all_keys
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_field_include_all_keys
CodSpeed Performance Gauge
0%
60.1 ms60.1 ms
test_force_optional
tests/main/openapi/test_main_openapi.py::test_force_optional
CodSpeed Performance Gauge
0%
118.8 ms118.9 ms
test_main_openapi_nullable
tests/main/openapi/test_main_openapi.py::test_main_openapi_nullable
CodSpeed Performance Gauge
0%
124.8 ms124.8 ms
test_main
tests/main/openapi/test_main_openapi.py::test_main
CodSpeed Performance Gauge
0%
111.5 ms111.6 ms
test_main_with_snake_case_field
tests/main/openapi/test_main_openapi.py::test_main_with_snake_case_field
CodSpeed Performance Gauge
0%
114.5 ms114.6 ms
test_main_yaml
tests/main/test_main_yaml.py::test_main_yaml
CodSpeed Performance Gauge
0%
50.5 ms50.5 ms

Commits

Click on a commit to change the comparison range
Base
main
d97e532
+0.05%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
72a86f2
13 days ago
by pre-commit-ci[bot]
-0.05%
Merge remote-tracking branch 'origin/fix-additional-properties-nullability' into fix-additional-properties-nullability
ec56a57
13 days ago
by erandagan
© 2025 CodSpeed Technology
Home Terms Privacy Docs