{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-decide-approval-request-schema.json",
  "title": "DecideApprovalRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendraven-ai-approvals-api-openapi.yml#/components/schemas/DecideApprovalRequest",
  "type": "object",
  "required": [
    "decision",
    "decided_by"
  ],
  "properties": {
    "decision": {
      "type": "string",
      "enum": [
        "approve",
        "reject"
      ]
    },
    "decided_by": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Who authorised the decision, such as a reviewer's email address. Recorded as given, not verified, not returned."
    },
    "reason": {
      "type": "string",
      "maxLength": 500,
      "description": "Stored on the approval; not returned."
    }
  }
}