{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/relayger-com/json-schema/relayger-com-approval-schema.json",
  "title": "Approval",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/relayger-com-approvals-api-openapi.yml#/components/schemas/Approval",
  "additionalProperties": false,
  "properties": {
    "action": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "fileId": {
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "type": "string"
        },
        "kind": {
          "enum": [
            "review_result",
            "publish_artifact"
          ],
          "type": "string"
        },
        "summary": {
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "summary"
      ],
      "type": "object"
    },
    "approverId": {
      "format": "uuid",
      "type": "string"
    },
    "decidedAt": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "decidedBy": {
      "format": "uuid",
      "type": [
        "string",
        "null"
      ]
    },
    "decision": {
      "enum": [
        "approved",
        "rejected",
        null
      ]
    },
    "description": {
      "type": "string"
    },
    "expiresAt": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "payloadHash": {
      "type": "string"
    },
    "requesterId": {
      "format": "uuid",
      "type": "string"
    },
    "roomId": {
      "format": "uuid",
      "type": "string"
    },
    "taskId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "id",
    "taskId",
    "roomId",
    "requesterId",
    "approverId",
    "description",
    "action",
    "payloadHash",
    "expiresAt",
    "decision",
    "decidedAt",
    "decidedBy"
  ],
  "type": "object"
}