{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cover-desk.pages.dev/open-cover/schemas/claim-receipt.json",
  "title": "Open Cover 0.1: claim-receipt",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "profile",
    "ok",
    "kind",
    "reference",
    "status",
    "next_steps",
    "claims_contact",
    "note"
  ],
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "open-cover/0.1"
      ]
    },
    "ok": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "claim",
        "third_party_notice"
      ]
    },
    "reference": {
      "type": "string",
      "minLength": 4,
      "maxLength": 24
    },
    "status": {
      "type": "string",
      "enum": [
        "received"
      ]
    },
    "next_steps": {
      "type": "array",
      "minItems": 1,
      "maxItems": 6,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      }
    },
    "claims_contact": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "note": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    }
  }
}
