Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

model_json_schema export with Annotated types misses 'required' parameters

#8793Merged
Comparing
LouisGobert:fix-annotation-with-field
(
093d05c
) with
main
(
832225b
)
CodSpeed Performance Gauge
0%
Untouched
10

Benchmarks

10 total
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
23.7 ms23.5 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
15.9 ms15.8 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
36.8 ms36.7 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
224.2 ms224.2 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
681.3 ms681.5 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
39.2 ms39.3 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
62.1 ms62.1 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
63.5 ms63.5 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
18.2 ms18.2 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
37.4 ms37.6 ms

Commits

Click on a commit to change the comparison range
Base
main
832225b
-0.29%
Add support for ellipsis with annotated field
10f0964
2 years ago
by LouisGobert
-0.26%
Add another test to test multi-field annotation
4d3de7f
2 years ago
by LouisGobert
+0.6%
Fix default value override in FieldInfo.merge_field_infos()
093d05c
2 years ago
by LouisGobert
© 2026 CodSpeed Technology
Home Terms Privacy Docs