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.
Description of the bug
When using
Annotated, pydantic fields do not show up as attributes anymore, have no hyperlink, and the field description is lostTo Reproduce
Full traceback
Expected behavior
I would expect them to show up as attributes with their description.