{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africacompliancedata-com/json-schema/africacompliancedata-com-holiday-schema.json",
  "title": "Holiday",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africacompliancedata-com-holidays-and-business-days-api-openapi.yml#/components/schemas/Holiday",
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "name": {
      "type": "string"
    },
    "rule_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Absent for ad-hoc days off"
    },
    "status": {
      "type": "string",
      "enum": [
        "rule",
        "confirmed",
        "estimated",
        "observed",
        "bridge"
      ]
    },
    "scope": {
      "type": "string",
      "description": "national, or the group a holiday is limited to"
    },
    "observed_for": {
      "type": "string",
      "format": "date",
      "description": "For a substitute day: the date of the holiday it replaces"
    },
    "moved_from": {
      "type": "string",
      "format": "date",
      "description": "Original date of a holiday officially moved"
    },
    "bridge_for": {
      "type": "string",
      "format": "date",
      "description": "For a bridge day: the holiday it bridges to"
    },
    "estimated": {
      "type": "boolean",
      "description": "true on a weekend substitute of an estimated (moon-sighted) date: it moves with the announced date"
    },
    "source_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Official announcement (confirmed dates); null when the official text is not online (source_note says where it was published)"
    },
    "source_note": {
      "type": "string",
      "description": "Where the announcement was made when it is not published online, or that the date is known from a press report of the official announcement"
    }
  }
}