Skip to main content

Module validation_problem

Module validation_problem 

Source
Expand description

Parses the server’s RFC 7807 validation problem error format.

Endpoints that expose stable error codes answer a failed request with a validation problem on 400:

{
  "type": "validation_error",
  "status": 400,
  "errors": { "code": [{ "type": "already_organization_member", "detail": "..." }] }
}

Older servers (and endpoints not yet migrated) answer with the legacy ErrorResponseModel ({ "message": "...", ... }), which carries no code and is not a validation problem.

Structs§

ValidationError 🔒
A single error reported in a ValidationProblem.
ValidationProblem 🔒
The subset of the server’s RFC 7807 validation problem needed to extract error codes.