koxudaxi
datamodel-code-generator
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Fix incorrect default value in test schema for FamilyPets
fix/required-list-default
12 hours ago
Add parameterized test for pydantic v1/v2 default value handling
fix/required-list-default
12 hours ago
Fix required list fields ignoring empty default values
fix/required-list-default
12 hours ago
Fix empty list default for GraphQL list fields When GraphQL input fields have empty list defaults (e.g., `requiredList: [String!]! = []`), the generated code was incorrectly producing: - `Field(...)` for required lists (ignoring the default) - `Field([])` for nullable lists (using mutable default) This fix ensures all list fields with empty defaults generate `Field(default_factory=list)`, which is the correct way to handle mutable defaults in Pydantic. Changes: - Add early check in `_get_default_as_pydantic_model()` for any list type with empty default - Update `__str__()` to not skip default handling when `required=True` but `has_default=True` - Update field argument generation to not add `...` when there's already a `default_factory` Fixes issue where GraphQL schemas with default empty arrays would generate incorrect Pydantic code.
fix/required-list-empty-default
12 hours ago
Add --use-closed-typed-dict option to control PEP 728 TypedDict generation (#2956) * Add --use-closed-typed-dict option to control PEP 728 TypedDict generation * docs: update llms.txt files Generated by GitHub Actions * docs: update CLI reference documentation and prompt data 🤖 Generated by GitHub Actions * Use assert helper function for test_main_typed_dict_no_closed * Split cli_doc markers for --use-closed-typed-dict and --no-use-closed-typed-dict * docs: update llms.txt files Generated by GitHub Actions * docs: update CLI reference documentation and prompt data 🤖 Generated by GitHub Actions --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
main
12 hours ago
docs: update CLI reference documentation and prompt data 🤖 Generated by GitHub Actions
feature/use-closed-typed-dict-option
13 hours ago
Use assert helper function for test_main_typed_dict_no_closed
feature/use-closed-typed-dict-option
13 hours ago
docs: update CLI reference documentation and prompt data 🤖 Generated by GitHub Actions
feature/use-closed-typed-dict-option
13 hours ago
Active Branches
Fix required list fields ignoring empty default values
last run
12 hours ago
#2958
CodSpeed Performance Gauge
-16%
[WIP] Fix bug in handling of graphql empty list defaults
last run
13 hours ago
#2948
CodSpeed Performance Gauge
-5%
feat: Drop Python 3.9 support, require Python 3.10+
last run
22 days ago
#2692
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs