-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bug V2Bug related to Pydantic V2Bug related to Pydantic V2
Description
from typing import Annotated
from typing_extensions import TypeAliasType
from pydantic import Field, BaseModel
SomeAlias = TypeAliasType('SomeAlias', Annotated[int, Field(description='number')])
class Model(BaseModel):
foo: Annotated[SomeAlias, Field(title='abc')]
print(Model.model_json_schema()) # description gets dropped
Selected Assignee: @hramezani
pydantic-hooky, chrisbouchard, wfranus and jwhitaker-gridcog
Metadata
Metadata
Assignees
Labels
bug V2Bug related to Pydantic V2Bug related to Pydantic V2