Skip to content

bug: Annotated causes fields to not show up with description #37

@maxschulz-COL

Description

@maxschulz-COL

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

Image

Expected behavior

I would expect them to show up as attributes with their description.

Metadata

Metadata

Assignees

Labels

unconfirmedThis bug was not reproduced yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions