{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-structure/github-repo-branches-api-validation-error-structure.json", "name": "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": "int32" }, "value": { "oneOf": [ { "type": "string" }, { "type": "integer" }, { "type": "array", "items": { "type": "string" } } ] } } } } }, "required": [ "message", "documentation_url" ] }