Skip to content

Exceptions

Errors raised during schema conversion and format validation.

Custom exceptions for schema conversion, reference resolution, and format validation.

BasePydanticJsonSchemaError

BasePydanticJsonSchemaError(message: str)

Bases: Exception

Base schema exception.

SchemaConversionError

SchemaConversionError(message: str)

Bases: BasePydanticJsonSchemaError

Schema conversion failed.

SchemaReferenceError

SchemaReferenceError(message: str, path: list[str])

Bases: BasePydanticJsonSchemaError

Reference resolution failed.

FormatValidationError

FormatValidationError(message: str, value: Any = None)

Bases: BasePydanticJsonSchemaError, ValueError

Format validation failed.