BizKitHub
PUBLIC_REQUEST_VALIDATION_FAILED

Request does not match the endpoint schema.

Z BizKitHub Docs, dokumentacja kodów błędów API

Nazwy i opisy kodów prowadzimy po angielsku.

HTTP 422Publiczne API
The body, query or path parameters failed schema validation. The response lists the offending fields in `errors` (`path` + `message`) and the request part in `on` (`body`, `query`, `params`). The schema of every endpoint is in the Swagger documentation.

Jak to rozwiązać

  1. 1

    Send `Content-Type: application/json` with a JSON object body.

  2. 2

    Omit optional fields or send `null` where the schema allows it.

Przykładowa odpowiedź

API odpowiada statusem HTTP 422 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.

application/json
{
  "state": "error",
  "code": 422,
  "message": "Request does not match the endpoint schema.",
  "errorCode": "PUBLIC_REQUEST_VALIDATION_FAILED",
  "hint": "The body, query or path parameters failed schema validation. The response lists the offending fields in `errors` (`path` + `message`) and the request part in `on` (`body`, `query`, `params`). The schema of every endpoint is in the Swagger documentation.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_REQUEST_VALIDATION_FAILED"
}
Dokumentacja referencyjna:Kody błędów API|Publiczne API|HTTP 422