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
Hi @m10d
This is not a bug but a feature request related to #470.
There is no current support of what you're asking for pydanticdataclass
But I agree using metadata kwarg of field would make sense
PrettyWood
changed the title
pydantic.dataclasses not plumbing metadata for schema generation (namely, field description)
Use metadata in dataclass field to populate pydantic Field
Feb 21, 2021
Checks
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:outputs as expected for raw basemodel:
but for the model generated from the dataclass, no attrs are preserved:
The text was updated successfully, but these errors were encountered: