{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/social-security-administration/blob/main/json-schema/ssa-resident-station-schema.json",
  "title": "SSA Resident Station",
  "description": "Schema for a Social Security Administration Resident Station record. Resident Stations are smaller SSA offices that serve rural communities and may operate on limited schedules.",
  "type": "object",
  "required": ["OFFICE_CODE", "OFFICE_NAME", "CITY", "STATE"],
  "properties": {
    "OFFICE_CODE": {
      "type": "string",
      "description": "Unique identifier code for the resident station"
    },
    "OFFICE_NAME": {
      "type": "string",
      "description": "Official name of the SSA resident station"
    },
    "ADDRESS_LINE_1": {
      "type": "string",
      "description": "Primary street address"
    },
    "ADDRESS_LINE_2": {
      "type": ["string", "null"],
      "description": "Secondary address information"
    },
    "ADDRESS_LINE_3": {
      "type": ["string", "null"],
      "description": "Additional address information"
    },
    "CITY": {
      "type": "string",
      "description": "City where the resident station is located"
    },
    "STATE": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "Two-letter U.S. state abbreviation"
    },
    "ZIP_CODE": {
      "type": "string",
      "description": "ZIP code of the resident station"
    },
    "PHONE": {
      "type": ["string", "null"],
      "description": "Telephone number for the resident station"
    },
    "FAX": {
      "type": ["string", "null"],
      "description": "Fax number for the resident station"
    },
    "MONDAY_OPEN_TIME": {
      "type": ["string", "null"],
      "description": "Monday opening time (may be null if closed or limited hours)"
    },
    "MONDAY_CLOSE_TIME": {
      "type": ["string", "null"],
      "description": "Monday closing time"
    },
    "TUESDAY_OPEN_TIME": {
      "type": ["string", "null"],
      "description": "Tuesday opening time"
    },
    "TUESDAY_CLOSE_TIME": {
      "type": ["string", "null"],
      "description": "Tuesday closing time"
    },
    "WEDNESDAY_OPEN_TIME": {
      "type": ["string", "null"],
      "description": "Wednesday opening time"
    },
    "WEDNESDAY_CLOSE_TIME": {
      "type": ["string", "null"],
      "description": "Wednesday closing time"
    },
    "THURSDAY_OPEN_TIME": {
      "type": ["string", "null"],
      "description": "Thursday opening time"
    },
    "THURSDAY_CLOSE_TIME": {
      "type": ["string", "null"],
      "description": "Thursday closing time"
    },
    "FRIDAY_OPEN_TIME": {
      "type": ["string", "null"],
      "description": "Friday opening time"
    },
    "FRIDAY_CLOSE_TIME": {
      "type": ["string", "null"],
      "description": "Friday closing time"
    },
    "LATITUDE_NUM": {
      "type": ["number", "null"],
      "description": "Latitude in decimal degrees (WGS 84)"
    },
    "LONGITUDE_NUM": {
      "type": ["number", "null"],
      "description": "Longitude in decimal degrees (WGS 84)"
    },
    "ObjectId": {
      "type": "integer",
      "description": "ArcGIS Feature Service unique record identifier"
    }
  }
}
