You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When you inherit modelmetaclass, the dataclass_transform decorator gets lost, resulting in LSP not being able to source fields for schemas
Describe the solution you'd like
add @dataclass_transformer(kw_only_default=True, field_specifiers=(Field,)) to the new metaclass here:
Is your feature request related to a problem? Please describe.
When you inherit modelmetaclass, the dataclass_transform decorator gets lost, resulting in LSP not being able to source fields for schemas
Describe the solution you'd like
add @dataclass_transformer(kw_only_default=True, field_specifiers=(Field,)) to the new metaclass here:
django-ninja/ninja/schema.py
Line 149 in 08af4b9
Can either be sourced from pydantic or dataclasses. Field is the schema field.
The text was updated successfully, but these errors were encountered: