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
| Attribute | Type | Description |
|---|---|---|
| body | Any | The 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
| Name | Type | Description |
|---|---|---|
| errors | Sequence[Any] | A sequence of validation error details. |
| body | Any = None | The response body that failed validation. |
| endpoint_ctx | `EndpointContext | None` = None |
Signature
def ResponseValidationError(
errors: Sequence[Any],
body: Any = None,
endpoint_ctx: EndpointContext | None = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| errors | Sequence[Any] | A sequence of validation error details identifying specific schema violations. |
| body | Any = None | The raw response body that failed validation, used for debugging and error reporting. |
| endpoint_ctx | `EndpointContext | None` = None |