ErrorDetail
Validation paths start with body, header, query, or path. Hook execution errors identify configuration.hooks.<name>; codes never contain input values or native validator messages.
Type: object
| Field | Required | Type | Description and constraints |
|---|---|---|---|
code | Yes | string | enum: ["required","invalid_type","invalid_value","unknown_field","template_not_found","template_inactive","template_forbidden","tag_not_found","profile_not_found","profile_inactive","account_inactive"] |
path | Yes | array<string / integer> |
JSON Schema
json
{
"description": "Validation paths start with body, header, query, or path. Hook execution errors identify configuration.hooks.<name>; codes never contain input values or native validator messages.",
"properties": {
"code": {
"enum": [
"required",
"invalid_type",
"invalid_value",
"unknown_field",
"template_not_found",
"template_inactive",
"template_forbidden",
"tag_not_found",
"profile_not_found",
"profile_inactive",
"account_inactive"
],
"title": "Code",
"type": "string"
},
"path": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"title": "Path",
"type": "array"
}
},
"required": [
"path",
"code"
],
"title": "ErrorDetail",
"type": "object"
}