{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-schema/github-repo-branches-api-validation-error-schema.json", "title": "validation-error", "description": "Validation Error", "type": "object", "properties": { "message": { "type": "string", "example": "Example body text" }, "documentation_url": { "type": "string", "example": "https://api.github.com/repos/octocat/Hello-World" }, "errors": { "type": "array", "items": { "type": "object", "required": [ "code" ], "properties": { "resource": { "type": "string" }, "field": { "type": "string" }, "message": { "type": "string" }, "code": { "type": "string" }, "index": { "type": "integer" }, "value": { "oneOf": [ { "type": "string" }, { "type": "integer" }, { "type": "array", "items": { "type": "string" } } ] } } } } }, "required": [ "message", "documentation_url" ] }