{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curbwaste/json-schema/curbwaste-public-zones-list-response-schema.json",
  "title": "PublicZonesListResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curbwaste-zones-api-openapi.yml#/components/schemas/PublicZonesListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicZone"
      }
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "PublicZone": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "code": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "color": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "isActive": {
          "type": "boolean"
        },
        "zipCodes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "services": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PublicZoneService"
          }
        }
      },
      "required": [
        "id",
        "name",
        "code",
        "color",
        "isActive",
        "zipCodes",
        "services"
      ]
    },
    "PublicZoneService": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "identifier": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        }
      },
      "required": [
        "id",
        "name",
        "identifier"
      ]
    }
  }
}