{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buckybuild-com/json-schema/buckybuild-com-division-coverage-schema.json",
  "title": "DivisionCoverage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buckybuild-com-coverage-api-openapi.yml#/components/schemas/DivisionCoverage",
  "type": "object",
  "properties": {
    "geoDivision": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "regionName": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "publicTier": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "slug",
        "regionName",
        "countryCode",
        "publicTier"
      ],
      "additionalProperties": false
    },
    "catalogueStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "publicTier": {
      "type": [
        "string",
        "null"
      ]
    },
    "onboardingStatus": {
      "type": "string"
    },
    "isLive": {
      "type": "boolean"
    },
    "resolutionStatus": {
      "type": "string"
    },
    "eligibilityKnown": {
      "type": "boolean"
    },
    "phase": {
      "anyOf": [
        {
          "anyOf": [
            {
              "type": "number",
              "const": 0
            },
            {
              "type": "number",
              "const": 1
            },
            {
              "type": "number",
              "const": 2
            },
            {
              "type": "string",
              "const": "done"
            }
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "catalogueUpdated": {
      "type": [
        "string",
        "null"
      ]
    },
    "parcelSource": {
      "type": "object",
      "properties": {
        "supported": {
          "type": "boolean"
        },
        "sourceCity": {
          "type": [
            "string",
            "null"
          ]
        },
        "capabilities": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "live_proxy": {
                  "type": "boolean"
                },
                "canWarmByPoint": {
                  "type": "boolean"
                },
                "canWarmByPolygon": {
                  "type": "boolean"
                },
                "authoritativeForParcels": {
                  "type": "boolean"
                },
                "coverageNotes": {
                  "type": "string"
                }
              },
              "required": [
                "live_proxy",
                "canWarmByPoint",
                "canWarmByPolygon",
                "authoritativeForParcels"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "supported",
        "sourceCity",
        "capabilities"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "geoDivision",
    "catalogueStatus",
    "publicTier",
    "onboardingStatus",
    "isLive",
    "resolutionStatus",
    "eligibilityKnown",
    "phase",
    "catalogueUpdated",
    "parcelSource"
  ],
  "additionalProperties": false
}