types
¤
Classes:
-
TypeInfo
–Type information for a field: whether it is a list and its item type.
-
URIRefHandler
–Handler for URIRef type to work with Pydantic schema generation.
TypeInfo
¤
URIRefHandler
¤
Handler for URIRef type to work with Pydantic schema generation.
Methods:
-
__get_pydantic_core_schema__
–Generate a core schema for URIRef.
-
__get_pydantic_json_schema__
–Generate a JSON schema for URIRef.
__get_pydantic_core_schema__
classmethod
¤
__get_pydantic_core_schema__(_source_type: Any, _handler: GetCoreSchemaHandler) -> CoreSchema
Generate a core schema for URIRef.
Returns a core schema that validates URIRefs and strings, converting strings to URIRefs automatically.
__get_pydantic_json_schema__
classmethod
¤
__get_pydantic_json_schema__(_core_schema: CoreSchema, _handler: GetJsonSchemaHandler) -> JsonSchemaValue
Generate a JSON schema for URIRef.
Returns a JSON schema that represents URIRef as a string with URI format.