Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Improve error handling for in-evaluable refs for discriminator application

#10440Merged
Comparing
disc-fix-alias
(
113414a
) with
main
(
eda3eb4
)
CodSpeed Performance Gauge
0%
Untouched
37
Ignored
2

Benchmarks

39 total
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
58.1 µs57.9 µs
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
101.5 µs101.3 µs
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
84 µs83.8 µs
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2.3 ms2.2 ms
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
58.5 µs58.4 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
31.8 ms31.7 ms
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
3.5 s3.5 s
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
31.1 ms31.1 ms
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
40.9 ms40.9 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
21.9 ms21.8 ms
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
24 ms24 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
17.1 ms17.1 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
255.8 ms255.8 ms
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
62 µs62 µs
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.3 ms52.3 ms
test_tagged_union_with_callable_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2.1 ms2.1 ms
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
965 µs965.5 µs
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
44 ms44 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.5 ms52.5 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
29.2 ms29.3 ms
test_model_validators_serializers
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms

Commits

Click on a commit to change the comparison range
Base
main
eda3eb4
-0.15%
add helpful error, at least
269f69b
2 years ago
by sydney-runkle
+0.15%
Remove unnecessary dict assignment
f6b96ac
2 years ago
by sydney-runkle
-0.02%
add warning
de692d1
2 years ago
by sydney-runkle
-0.06%
note about json schema warning
113414a
1 year ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs