Skip to main content

RequestValidationError

No overview available.

Constructor

Signature

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

Parameters

NameTypeDescription
errorsSequence[Any]A sequence of errors that occurred during validation.
bodyAny = NoneThe body of the request that caused the validation error.
endpoint_ctx`EndpointContextNone` = None

Signature

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

Parameters

NameTypeDescription
errorsSequence[Any]A sequence of validation error objects that describe the issues found during request validation.
bodyAny = NoneThe raw request body that caused the validation errors. This is stored for debugging or logging purposes.
endpoint_ctx`EndpointContextNone` = None