{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africacompliancedata-com/json-schema/africacompliancedata-com-country-pack-schema.json",
  "title": "CountryPack",
  "description": "Pro plan: the countries of tax data",
  "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/CountryPack",
  "type": "object",
  "properties": {
    "countries": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Active pack countries, in the order they joined"
    },
    "inactive": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Countries beyond the pack's size after an add-on ended: refused until there is room"
    },
    "size": {
      "type": "integer",
      "description": "base + extra"
    },
    "base": {
      "type": "integer",
      "const": 5
    },
    "extra": {
      "type": "integer",
      "description": "Extra countries bought as add-ons"
    },
    "last_swap": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "next_swap_from": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When a change that removes a country is possible again (null: now)"
    }
  }
}