-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
unconfirmedThis bug was not reproduced yetThis bug was not reproduced yet
Description
Description of the bug
When using Annotated
, pydantic fields do not show up as attributes anymore, have no hyperlink, and the field description is lost
To Reproduce
class ExampleModel(BaseModel):
"""An example model."""
field_with_constraints_and_description: Annotated[
int, Field(default=5, ge=0, le=100, description="Shows constraints within doc string.")
]
Full traceback

Expected behavior
I would expect them to show up as attributes with their description.
Metadata
Metadata
Assignees
Labels
unconfirmedThis bug was not reproduced yetThis bug was not reproduced yet