Ask a question to get started
Enter to send•Shift+Enter new line
field_alias_from: str | None = discriminator_alias
The name of the discriminator field in the API response, e.g.
class Foo(BaseModel): type: Literal['foo'] = Field(alias='type_from_api')
Will result in field_alias_from='type_from_api'