Skip to main content

ResponseValidationError

This class represents an exception raised when an API response fails validation against its defined schema. It captures a sequence of validation errors along with the response body and endpoint context to facilitate debugging of malformed outgoing data.

Attributes

AttributeTypeDescription
bodyAnyThe raw response body that failed validation, used for debugging and error reporting.

Constructor

Signature

def ResponseValidationError(
errors: Sequence[Any],
body: Any = None,
endpoint_ctx: EndpointContext | None = None
) - > None

Parameters

NameTypeDescription
errorsSequence[Any]A sequence of validation error details.
bodyAny = NoneThe response body that failed validation.
endpoint_ctx`EndpointContextNone` = None

Signature

def ResponseValidationError(
errors: Sequence[Any],
body: Any = None,
endpoint_ctx: EndpointContext | None = None
) - > null

Parameters

NameTypeDescription
errorsSequence[Any]A sequence of validation error details identifying specific schema violations.
bodyAny = NoneThe raw response body that failed validation, used for debugging and error reporting.
endpoint_ctx`EndpointContextNone` = None