Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Adding v1 / v2 incompatibility warning for nested v1 model

#10431Merged
Comparing
incompat-warning
(
8f9599f
) with
main
(
59a3de7
)
CodSpeed Performance Gauge
0%
Untouched
48
Ignored
2

Benchmarks

50 total
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
97.9 µs97.3 µs
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
974.3 µs970.5 µs
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
84.5 µs84.2 µs
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
57.3 µs57.2 µs
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
17 ms16.9 ms
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
43.8 µs43.7 µs
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
57.6 µs57.5 µs
test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
60.4 µs60.2 µs
test_isinstance_basemodel
tests/benchmarks/test_isinstance.py
CodSpeed Performance Gauge
0%
26.3 ms26.3 ms
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
100.4 µs100.2 µs
test_import_field
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
83.3 µs83.2 µs
test_model_json_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
66 µs65.9 µs
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
3.6 ms3.5 ms
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
42.6 µs42.6 µs
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
3.4 ms3.3 ms
test_custom_serializer_plain_annotated
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_custom_serializer_wrap_annotated
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
22.7 ms22.7 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
24.3 ms24.3 ms
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
4.4 s4.4 s
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
3.5 ms3.6 ms
test_custom_model_validator_after
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
53.1 ms53.1 ms
test_custom_field_validator_via_annotation[BeforeValidator]
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_custom_model_validator_wrap
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms

Commits

Click on a commit to change the comparison range
Base
main
59a3de7
-0.11%
adding v1 / v2 incompatibility warning
5316632
2 years ago
by sydney-runkle
+0.09%
ticks
74c2ff1
2 years ago
by sydney-runkle
-0.08%
modifying warning
8f9599f
2 years ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs