PropertyInfo(
self,
*,
alias: str | None = None,
format: PropertyFormat | | Name | Type |
|---|---|
| alias | str | None |
| format | PropertyFormat | None |
| format_template | str | None |
| discriminator | str | None |
Metadata class to be used in Annotated types to provide information about a given type.
For example:
class MyParams(TypedDict): account_holder_name: Annotated[str, PropertyInfo(alias='accountHolderName')]
This means that {'account_holder_name': 'Robert'} will be transformed to {'accountHolderName': 'Robert'} before being sent to the API.