koxudaxi
datamodel-code-generator
BlogDocsChangelog

fix: RootModel future annotations and extra field

#2478
Comparing
MarekZbysinskiQC:root-model-pydanticv2-fix
(
e662dd3
) with
main
(
e9ffb9f
)
CodSpeed Performance Gauge
0%
Untouched
32

Benchmarks

Passed

test_main_openapi_nullable
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
127.2 ms127.1 ms
test_main_jsonschema_no_empty_collapsed_external_model
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
50.2 ms50.1 ms
test_force_optional
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
121.1 ms121 ms
test_main_collapse_root_models
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
78.3 ms78.2 ms
test_main_nested_directory
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
196.9 ms196.8 ms
test_main_jsonschema_id
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
55.1 ms55.1 ms
test_main_modular
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
248.8 ms248.8 ms
test_main_jsonschema_required_and_any_of_required
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
61.3 ms61.3 ms
test_main_with_snake_case_field
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
116.5 ms116.5 ms
test_main_jsonschema_multiple_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
80.1 ms80.1 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
52.3 ms52.3 ms
test_use_default
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
114.2 ms114.2 ms
test_main_jsonschema_special_field_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
63.7 ms63.7 ms
test_main_jsonschema_collapsed_external_references
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
77.8 ms77.8 ms
test_main
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
113.3 ms113.4 ms
test_main_strict_types_all_with_field_constraints
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
71.1 ms71.2 ms
test_main_jsonschema_nested_deep
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
72.1 ms72.2 ms
test_main_inheritance_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
104.5 ms104.5 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
54.6 ms54.6 ms
test_main_inheritance_forward_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
106.1 ms106.1 ms
test_main_root_id_jsonschema_self_refs_with_local_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
81.5 ms81.6 ms
test_main_json_reuse_enum_default_member
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
75.5 ms75.6 ms
test_main_openapi_nullable_31
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
51 ms51 ms
test_main_root_id_jsonschema_self_refs_with_remote_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
82.1 ms82.2 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
52.3 ms52.3 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
63.3 ms63.4 ms
test_main_jsonschema_complex_any_of
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
64.6 ms64.7 ms
test_main_with_strip_default_none
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
112.3 ms112.5 ms
test_main_yaml
tests/main/test_main_yaml.py
CodSpeed Performance Gauge
0%
50.7 ms50.7 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
53.6 ms53.6 ms
test_main_jsonschema_field_include_all_keys
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
60.6 ms60.7 ms
test_main_strict_types
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
74.5 ms74.6 ms

Commits

Click on a commit to change the comparison range
Base
main
e9ffb9f
-0.05%
Update RootModel.jinja2
e662dd3
4 months ago
by MarekZbysinskiQC
© 2025 CodSpeed Technology
Home Terms Privacy Docs