{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-dispute-thread-schema.json",
  "title": "DisputeThread",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-disputes-api-openapi.yml#/components/schemas/DisputeThread",
  "type": "object",
  "properties": {
    "dispute_id": {
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/DisputeStatus"
    },
    "opened_by": {
      "$ref": "#/$defs/GAII"
    },
    "reason": {
      "type": "string"
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "DisputeStatus": {
      "type": "string",
      "enum": [
        "open",
        "contested",
        "escalated",
        "resolved"
      ]
    },
    "GAII": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]#[a-z0-9][a-z0-9-]{0,38}[a-z0-9]@[a-z0-9][a-z0-9-]{0,62}[a-z0-9]$"
    }
  }
}