{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africacompliancedata-com/json-schema/africacompliancedata-com-contribution-period-schema.json",
  "title": "ContributionPeriod",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africacompliancedata-com-openapi.json#/components/schemas/ContributionPeriod",
  "type": "object",
  "properties": {
    "from": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "to": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "employee_rate": {
      "type": [
        "number",
        "null"
      ],
      "description": "Percent of base; 0 = not payable by the employee; null = not a percentage"
    },
    "employer_rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "employer_rate_range": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "number"
      },
      "description": "[min, max] when the rate depends on the sector or risk class"
    },
    "base": {
      "type": [
        "string",
        "null"
      ]
    },
    "basis": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "monthly",
        "annual",
        null
      ]
    },
    "base_floor": {
      "type": [
        "number",
        "null"
      ]
    },
    "base_ceiling": {
      "type": [
        "number",
        "null"
      ]
    },
    "employee_amount": {
      "type": [
        "number",
        "null"
      ]
    },
    "employer_amount": {
      "type": [
        "number",
        "null"
      ]
    },
    "employee_min": {
      "type": [
        "number",
        "null"
      ]
    },
    "employee_max": {
      "type": [
        "number",
        "null"
      ]
    },
    "employer_min": {
      "type": [
        "number",
        "null"
      ]
    },
    "employer_max": {
      "type": [
        "number",
        "null"
      ]
    },
    "tax_deductible": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "applies_if": {
      "type": [
        "string",
        "null"
      ]
    },
    "region": {
      "type": [
        "string",
        "null"
      ]
    },
    "legal_basis": {
      "type": "string"
    },
    "source_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_note": {
      "type": "string"
    },
    "source_type": {
      "type": "string"
    },
    "confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "notes": {
      "type": "string"
    }
  }
}