{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/collectly/json-schema/collectly-location-schema.json",
  "title": "Location",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/collectly-locations-api-openapi.yml#/components/schemas/Location",
  "properties": {
    "address": {
      "$ref": "#/$defs/AddressBase"
    },
    "collectly_id": {
      "description": "Unique Collectly resource ID",
      "readOnly": true,
      "type": "string"
    },
    "created_at": {
      "readOnly": true
    },
    "id": {
      "description": "Unique resource ID from your integration",
      "type": "string"
    },
    "modified_at": {
      "readOnly": true
    },
    "name": {
      "minLength": 1,
      "type": "string"
    },
    "practice_id": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "practice_id"
  ],
  "type": "object",
  "$defs": {
    "AddressBase": {
      "properties": {
        "city": {
          "type": "string"
        },
        "country_short": {
          "default": "US",
          "type": "string"
        },
        "line2": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": "string"
        },
        "status": {
          "default": "active",
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "zip_code": {
          "type": "string"
        }
      },
      "required": [
        "city",
        "state",
        "street",
        "zip_code"
      ],
      "type": "object"
    }
  }
}