{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-appeal-record-schema.json",
  "title": "AppealRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-appeals-api-openapi.yml#/components/schemas/AppealRecord",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique appeal ID"
    },
    "flagId": {
      "type": "string",
      "description": "ID of the flag being appealed"
    },
    "appealedBy": {
      "type": "string",
      "description": "GHII of the person appealing"
    },
    "reason": {
      "type": "string",
      "description": "Reason for the appeal",
      "maxLength": 2000
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "upheld",
        "overturned",
        "dismissed"
      ],
      "default": "pending"
    },
    "reviewNote": {
      "type": "string",
      "description": "Operator review note (present after review)"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}