PUBLIC_REQUEST_VALIDATION_FAILEDRequest does not match the endpoint schema.
Z BizKitHub Docs, reference chybových kódů API
Názvy a popisy kódů udržujeme v angličtině.
HTTP 422Veřejné 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 vyřešit
- 1
Send `Content-Type: application/json` with a JSON object body.
- 2
Omit optional fields or send `null` where the schema allows it.
Ukázka odpovědi
API odpoví statusem HTTP 422 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.
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"
}