koxudaxi
datamodel-code-generator
BlogDocsChangelog

Fix Pydantic v2 discriminated unions in array fields

#2907Merged
Comparing
fix/discriminator-in-list-pydantic-v2
(
ffcd38b
) with
main
(
3db6667
)
CodSpeed Performance Gauge
-3%
Untouched
11
Skipped
98

Benchmarks

Skipped (98)

Passed

test_perf_multiple_files_input
tests/main/test_performance.py
CodSpeed Performance Gauge
-1%
3.7 s3.7 s
test_perf_deep_nested
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
6 s6.1 s
test_perf_openapi_large
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
2.8 s2.9 s
test_perf_large_models_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
3.6 s3.7 s
test_perf_duplicate_names
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
983.1 ms1,005.5 ms
test_perf_all_options_enabled
tests/main/test_performance.py
CodSpeed Performance Gauge
-2%
6.5 s6.7 s
test_perf_complex_refs
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
2 s2 s
test_perf_graphql_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
798.1 ms829.6 ms
test_perf_stripe_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
1.9 s2 s
test_perf_aws_style_openapi_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-4%
1.9 s2 s
test_perf_kubernetes_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-5%
2.5 s2.7 s

Commits

Click on a commit to change the comparison range
Base
main
3db6667
-2.31%
Fix Pydantic v2 discriminated unions in array fields
af976a1
4 hours ago
by koxudaxi
+21.67%
Add e2e tests for discriminator in array
8efcca3
3 hours ago
by koxudaxi
-22.25%
Remove complex runtime test that fails in CI
ffcd38b
3 hours ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs