{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atatravel-cloud/json-schema/atatravel-cloud-property-summary-schema.json",
  "title": "PropertySummary",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atatravel-cloud-openapi.json#/components/schemas/PropertySummary",
  "type": "object",
  "required": [
    "id",
    "publicToken",
    "name",
    "currency",
    "images",
    "roomsAvailable"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "publicToken": {
      "type": "string"
    },
    "publicSlug": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "currency": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3
    },
    "latitude": {
      "type": [
        "number",
        "null"
      ]
    },
    "longitude": {
      "type": [
        "number",
        "null"
      ]
    },
    "images": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Image"
      }
    },
    "minNightlyPrice": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "roomsAvailable": {
      "type": "integer",
      "minimum": 0
    },
    "maxGuests": {
      "type": "integer",
      "minimum": 0
    },
    "publicUrl": {
      "type": "string",
      "format": "uri"
    },
    "building": {
      "oneOf": [
        {
          "$ref": "#/$defs/BuildingSummary"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": true,
  "$defs": {
    "BuildingSummary": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "shortDescription": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "neighborhood": {
          "type": [
            "string",
            "null"
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "propertyCount": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": true
    },
    "Image": {
      "oneOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "format": "uri"
            },
            "alt": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "additionalProperties": true
        }
      ]
    }
  }
}