{
  "$id": "https://redlightindex.com/schema/claims.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "items": {
    "additionalProperties": false,
    "properties": {
      "accuracy_class": {
        "enum": [
          "C0",
          "C1",
          "C2",
          "L",
          "I",
          "M"
        ],
        "type": "string"
      },
      "band": {
        "type": "string"
      },
      "claim_id": {
        "type": "string"
      },
      "claim_type": {
        "type": "string"
      },
      "comparability_key": {
        "type": "string"
      },
      "device_id": {
        "type": "string"
      },
      "distance_bucket": {
        "enum": [
          "contact",
          "le8_cm",
          "8_20_cm",
          "gt20_cm",
          "not_stated"
        ],
        "type": "string"
      },
      "distance_cm": {
        "pattern": "^$|^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
        "type": "string"
      },
      "distance_status": {
        "enum": [
          "stated",
          "not_stated"
        ],
        "type": "string"
      },
      "geometry": {
        "type": "string"
      },
      "instrument_type": {
        "type": "string"
      },
      "is_quote": {
        "enum": [
          "true",
          "false"
        ],
        "type": "string"
      },
      "quoted_text": {
        "type": "string"
      },
      "retrieved_at": {
        "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
      },
      "source_archive_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "source_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "statistic": {
        "type": "string"
      },
      "supersedes_claim_id": {
        "type": "string"
      },
      "suppression_reason": {
        "type": "string"
      },
      "unit": {
        "type": "string"
      },
      "value_num": {
        "pattern": "^$|^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
        "type": "string"
      },
      "value_text": {
        "type": "string"
      }
    },
    "required": [
      "claim_id",
      "device_id",
      "claim_type",
      "value_num",
      "value_text",
      "unit",
      "distance_cm",
      "distance_status",
      "distance_bucket",
      "statistic",
      "band",
      "instrument_type",
      "geometry",
      "source_url",
      "source_archive_url",
      "retrieved_at",
      "accuracy_class",
      "comparability_key",
      "quoted_text",
      "is_quote",
      "suppression_reason",
      "supersedes_claim_id"
    ],
    "type": "object"
  },
  "title": "Red Light Index claims rows",
  "type": "array"
}
