GetPydanticSchema
A convenience class for creating an annotation that provides pydantic custom type hooks.
Attributes
| Attribute | Type | Description |
|---|---|---|
| get_pydantic_core_schema | `Callable[[Any, GetCoreSchemaHandler], CoreSchema] | None` = None |
| get_pydantic_json_schema | `Callable[[Any, GetJsonSchemaHandler], JsonSchemaValue] | None` = None |
Constructor
Signature
def GetPydanticSchema(
get_pydantic_core_schema: Callable[[Any, [GetCoreSchemaHandler](../annotated/handlers/getcoreschemahandler.md?sid=pydantic_annotated_handlers_getcoreschemahandler)], CoreSchema]| None = None,
get_pydantic_json_schema: Callable[[Any, [GetJsonSchemaHandler](../annotated/handlers/getjsonschemahandler.md?sid=pydantic_annotated_handlers_getjsonschemahandler)], JsonSchemaValue]| None = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| get_pydantic_core_schema | `Callable[[Any, GetCoreSchemaHandler], CoreSchema] | None` = None |
| get_pydantic_json_schema | `Callable[[Any, GetJsonSchemaHandler], JsonSchemaValue] | None` = None |