koxudaxi
datamodel-code-generator
BlogDocsChangelog

Add GenerateConfig class and auto-generate TypedDicts for type-safe config

#2844
Comparing
refactor/config-class
(
445bc44
) with
main
(
0f7a6c9
)
CodSpeed Performance Gauge
0%
Untouched
11
Skipped
98

Benchmarks

Skipped (98)

Passed

test_perf_complex_refs
tests/main/test_performance.py
CodSpeed Performance Gauge
+2%
2.2 s2.2 s
test_perf_large_models_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
3.8 s3.7 s
test_perf_openapi_large
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
3 s3 s
test_perf_deep_nested
tests/main/test_performance.py
CodSpeed Performance Gauge
+1%
6.2 s6.2 s
test_perf_multiple_files_input
tests/main/test_performance.py
CodSpeed Performance Gauge
0%
3.8 s3.8 s
test_perf_duplicate_names
tests/main/test_performance.py
CodSpeed Performance Gauge
0%
1 s1 s
test_perf_kubernetes_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
0%
2.7 s2.7 s
test_perf_graphql_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-1%
837.2 ms844.4 ms
test_perf_aws_style_openapi_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-1%
2 s2 s
test_perf_stripe_style_pydantic_v2
tests/main/test_performance.py
CodSpeed Performance Gauge
-1%
2.1 s2.1 s
test_perf_all_options_enabled
tests/main/test_performance.py
CodSpeed Performance Gauge
-3%
6.7 s6.9 s

Commits

Click on a commit to change the comparison range
Base
main
0f7a6c9
-1.48%
Regenerate TypedDicts after merging set/frozenset fix
c12a383
18 hours ago
by koxudaxi
+0.38%
Add test for extra_template_data override and coverage pragmas
8d05fb0
13 hours ago
by koxudaxi
-0.07%
Restore --unsafe-fixes flag in ruff commands
ead4e16
12 hours ago
by koxudaxi
+1.1%
Restore _try_rebuild_model and test_input_model_config_class after merge
ef68905
5 hours ago
by koxudaxi
-0.04%
Use --input-model-ref-strategy to simplify config type generation
445bc44
4 hours ago
by koxudaxi
© 2025 CodSpeed Technology
Home Terms Privacy Docs