Reference · Error codes
Error: validation_failed
The request is well-formed but a field is missing or invalid. details lists the issues.
HTTP 422 · problem type: https://docs.gebsecure.com/errors/validation_failed · title: validation_failed
Common causes#
- A required field is missing or has the wrong type, length or pattern (for example an
actionthat does not match^[A-Za-z0-9][A-Za-z0-9_.:/*@-]*$). - Policy source that does not parse or validate (
POST /v1/policies,/v1/policies/validate). - An MCP
tools/callwhose arguments do not match the pinned input schema.
What to do#
- Read
detailsin the problem response (the SDKs expose it asdetails). - Validate GSL locally with
gebsecure policies validatebefore saving it.
In the SDKs#
| SDK | Error type |
|---|---|
| TypeScript | ValidationError |
| Python | ValidationError |
| Go | ErrValidation |
| Java | ValidationException |
| .NET | ValidationException |
Every error response is RFC 9457 application/problem+json; see the error model.