Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Fix serialization schema generation when using `PlainValidator`

#10427Merged
Comparing
10385
(
1fb016f
) with
main
(
cf671c8
)
CodSpeed Performance Gauge
0%
Untouched
48
Ignored
2

Benchmarks

50 total
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
42.9 µs42.5 µs
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
44 µs43.7 µs
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
57.3 µs57.2 µs
test_construct_schema
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
4.9 ms4.9 ms
test_isinstance_basemodel
tests/benchmarks/test_isinstance.py
CodSpeed Performance Gauge
0%
26.4 ms26.3 ms
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
84.2 µs84.1 µs
test_custom_field_serializer_plain
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
22.7 ms22.7 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
30 ms29.9 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
31 ms31 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
44.6 ms44.6 ms
test_custom_field_serializer_wrap
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.4 ms1.3 ms
test_custom_model_serializer_decorator
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
97.5 µs97.4 µs
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
57.7 µs57.6 µs
test_custom_serializer_wrap_annotated
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
53.1 ms53.1 ms
test_simple_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
34.5 µs34.5 µs
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
53.3 ms53.3 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
24.3 ms24.3 ms
test_custom_wrap_field_validator_via_annotation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_custom_wrap_field_validator_via_decorator
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
31.3 ms31.3 ms

Commits

Click on a commit to change the comparison range
Base
main
cf671c8
-0.72%
Fix serialization schema generation when using `PlainValidator`
0026fcb
1 year ago
by Viicos
+0.64%
feedback
f561620
1 year ago
by Viicos
+0.01%
add xfail
1fb016f
1 year ago
by Viicos
© 2026 CodSpeed Technology
Home Terms Privacy Docs