{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kampyeri-org/json-schema/kampyeri-org-availability-result-schema.json",
  "title": "AvailabilityResult",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kampyeri-org-openapi.json#/components/schemas/AvailabilityResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "check_in": {
          "type": "string",
          "format": "date"
        },
        "check_out": {
          "type": "string",
          "format": "date"
        },
        "has_availability": {
          "type": "boolean"
        },
        "available_areas": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AvailabilityArea"
          }
        },
        "canonical_url": {
          "type": "string",
          "format": "uri"
        },
        "booking_url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  },
  "$defs": {
    "AvailabilityArea": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "type_label": {
          "type": [
            "string",
            "null"
          ]
        },
        "capacity": {
          "type": [
            "integer",
            "null"
          ]
        },
        "max_capacity": {
          "type": [
            "integer",
            "null"
          ]
        },
        "price_per_night": {
          "type": [
            "number",
            "null"
          ]
        },
        "total_price": {
          "type": [
            "number",
            "null"
          ]
        },
        "nights": {
          "type": [
            "integer",
            "null"
          ]
        },
        "currency": {
          "type": "string"
        }
      }
    }
  }
}