{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://majesticcore.dev/schemas/apiError.schema.json",
  "title": "ApiError",
  "description": "Structured error responses from API endpoints",
  "type": "object",
  "required": ["error"],
  "properties": {
    "error": {
      "type": "string",
      "description": "Machine-readable error code"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "match_reason": { "type": "string" },
    "videoTranscodeAvailable": { "type": "boolean" },
    "hint": { "type": "string" },
    "editionAudio": { "type": "string" },
    "required": { "type": "string" },
    "policy": { "type": "string" },
    "adaptiveAvailable": { "type": "boolean" }
  },
  "additionalProperties": true
}
