{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africacompliancedata-com/json-schema/africacompliancedata-com-source-schema.json",
  "title": "Source",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africacompliancedata-com-countries-api-openapi.yml#/components/schemas/Source",
  "type": "object",
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "null when the official text is not available online; 'note' then explains it"
    },
    "note": {
      "type": "string",
      "description": "Present when url is null"
    },
    "legal_basis": {
      "type": "string"
    },
    "source_type": {
      "type": "string",
      "description": "e.g. statute, gazette, revenue_authority; 'secondary' when no official text has been confirmed"
    },
    "effective_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "last_verified": {
      "type": "string",
      "format": "date"
    }
  }
}