Skip to content

Validation

This problem occurs when the request is deemed unprocessable.

Your client issued a request that failed validation. Certain validation libraries return multi-errors and cannot be easily parsed into discreet types. This problem type, afforded the provider with the ability to surface all validation errors and negate the need for a trial and error workflow on your side.

Please review your request to determine if you can remain within appropriate business rules. Consider validating your request against available metadata (e.g. schemas) prior to sending to the server.

Type URITitleStatus
https://docs.sushi.com/api/errors/validationValidation422
Example of an validation problem details:
{
  "type": "https://docs.sushi.com/api/errors/validation",
  "title": "Validation Error",
  "detail": "The request is invalid.",
  "status": 422,
  "code": "422-01",
  "errors": [
    { "detail": "Required", "parameter": "tokenIn" },
    { "detail": "Required", "parameter": "tokenOut" },
    { "detail": "Required", "parameter": "sender" },
    { "detail": "Required", "parameter": "amount" }
  ]
}