INTERNAL_VALIDATION_FAILEDRequest payload failed validation.
Z BizKitHub Docs, dokumentacja kodów błędów API
Nazwy i opisy kodów prowadzimy po angielsku.
HTTP 400Platforma
The server-side validator rejected a field value that the typed body schema could not catch (format, length, cross-field consistency, multi-tenant ownership, etc.). The offending field and constraint should be passed as parametric context — e.g. `throw ApiError("INTERNAL_VALIDATION_FAILED", 'reserveFrom must be a relative-time string')`.
Jak to rozwiązać
- 1
Re-read the field requirements in the relevant Swagger description.
- 2
For relative-time fields use the format `1d`, `2h`, `30m`, `15m`, etc. (max 8 chars).
- 3
For ids verify the referenced record exists and belongs to your organisation.
Przykładowa odpowiedź
API odpowiada statusem HTTP 400 i treścią w formacie JSON. Porównuj errorCode, nie message. Komunikaty mogą się zmieniać, kody pozostają stałe.
application/json
{
"state": "error",
"code": 400,
"message": "Request payload failed validation.",
"errorCode": "INTERNAL_VALIDATION_FAILED",
"hint": "The server-side validator rejected a field value that the typed body schema could not catch (format, length, cross-field consistency, multi-tenant ownership, etc.). The offending field and constraint should be passed as parametric context — e.g. `throw ApiError(\"INTERNAL_VALIDATION_FAILED\", 'reserveFrom must be a relative-time string')`.",
"documentationUrl": "https://docs.bizkithub.com/errors/INTERNAL_VALIDATION_FAILED"
}