{
  "$id": "https://redlightindex.com/schema/affiliations.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "items": {
    "additionalProperties": false,
    "properties": {
      "affiliation_id": {
        "type": "string"
      },
      "brand": {
        "type": "string"
      },
      "cookie_days": {
        "pattern": "^$|^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
        "type": "string"
      },
      "device_classes": {
        "type": "string"
      },
      "disclosure_text": {
        "type": "string"
      },
      "network": {
        "type": "string"
      },
      "notes": {
        "type": "string"
      },
      "program_status": {
        "type": "string"
      },
      "rate_pct": {
        "pattern": "^$|^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
        "type": "string"
      },
      "rate_qualifier": {
        "type": "string"
      },
      "retrieved_at": {
        "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
      },
      "terms_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      }
    },
    "required": [
      "affiliation_id",
      "brand",
      "device_classes",
      "program_status",
      "rate_pct",
      "rate_qualifier",
      "network",
      "cookie_days",
      "terms_url",
      "retrieved_at",
      "disclosure_text",
      "notes"
    ],
    "type": "object"
  },
  "title": "Red Light Index affiliations rows",
  "type": "array"
}
