{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ableandagent-com/json-schema/ableandagent-com-catalog-schema.json",
  "title": "Catalog",
  "description": "Every code an ACT may name, with its label, in display order.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ableandagent-com-openapi.json#/components/schemas/Catalog",
  "type": "object",
  "properties": {
    "categories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "label"
        ]
      },
      "description": "What kind of task an ACT is."
    },
    "markets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "timezone": {
            "type": "string",
            "description": "The market's IANA timezone, which every ACT's deadline is shown in."
          },
          "communities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "What an ACT's community field takes."
                },
                "label": {
                  "type": "string"
                },
                "neighborhoods": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "label"
                    ]
                  },
                  "description": "What an ACT's neighborhood field takes, with this community beside it."
                }
              },
              "required": [
                "code",
                "label",
                "neighborhoods"
              ]
            }
          },
          "zipCodes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "communities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The communities it lies in. The first is the one a place named by this ZIP code alone is in."
                },
                "neighborhoods": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The neighborhoods it shares 5 acres or more with, from the City of San Diego's neighborhood map: the ones the post form offers. A place with this ZIP code may also name another neighborhood in one of its communities."
                }
              },
              "required": [
                "code",
                "communities",
                "neighborhoods"
              ]
            },
            "description": "The ZIP codes an ACT's zip field takes, the City's."
          }
        },
        "required": [
          "code",
          "label",
          "timezone",
          "communities",
          "zipCodes"
        ]
      },
      "description": "Where ACTs can be: San Diego at launch."
    }
  },
  "required": [
    "categories",
    "markets"
  ]
}