Skip to main content

ResponseValidationError

No overview available.

Attributes

AttributeTypeDescription
bodyThe body of the response that failed validation, used for debugging and providing context about the validation error.

Constructor

Signature

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

Parameters

NameTypeDescription
errorsSequence[Any]A sequence of validation errors.
bodyAny = NoneThe body of the response, if available.
endpoint_ctx`EndpointContextNone` = None

Signature

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

Parameters

NameTypeDescription
errorsSequence[Any]A sequence of validation errors that occurred during response processing. These errors provide details about why the response validation failed.
bodyAny = NoneThe raw body of the response that failed validation. This is included to provide context for debugging the validation failure.
endpoint_ctx`EndpointContextNone` = None