{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stayportland-com/json-schema/stayportland-com-search-response-schema.json",
  "title": "SearchResponse",
  "description": "Current search page. Search prices are indicative; request a quote for a confirmed all-in total. Undated search does not confirm availability.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stayportland-com-openapi.json#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "properties": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "sleeps": {
            "type": [
              "number",
              "null"
            ]
          },
          "bedrooms": {
            "type": [
              "number",
              "null"
            ]
          },
          "bathrooms": {
            "type": [
              "number",
              "null"
            ]
          },
          "beds": {
            "type": [
              "number",
              "null"
            ]
          },
          "propertyType": {
            "type": [
              "string",
              "null"
            ]
          },
          "neighborhood": {
            "type": [
              "string",
              "null"
            ]
          },
          "petsAllowed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "rating": {
            "type": [
              "number",
              "null"
            ]
          },
          "reviewCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "fromNightly": {
            "type": [
              "number",
              "null"
            ]
          },
          "stayTotal": {
            "type": [
              "number",
              "null"
            ]
          },
          "priceBasis": {
            "type": "string",
            "enum": [
              "from-nightly-accommodation",
              "dated-stay-accommodation-pre-tax"
            ]
          },
          "currency": {
            "type": "string",
            "const": "USD"
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "photos": {
            "maxItems": 6,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "availableCheckin": {
            "type": "string"
          },
          "availableCheckout": {
            "type": "string"
          },
          "matchScore": {
            "type": "number"
          },
          "matchReasons": {
            "maxItems": 6,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "amenity",
                    "persona",
                    "query"
                  ]
                },
                "label": {
                  "type": "string"
                },
                "evidence": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "label",
                "evidence"
              ],
              "additionalProperties": false
            }
          },
          "bookUrl": {
            "type": "string"
          },
          "markdownUrl": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "title",
          "sleeps",
          "bedrooms",
          "bathrooms",
          "neighborhood",
          "petsAllowed",
          "fromNightly",
          "stayTotal",
          "currency",
          "image",
          "bookUrl",
          "markdownUrl"
        ],
        "additionalProperties": false
      },
      "maxItems": 20
    },
    "count": {
      "type": "number"
    },
    "availableCount": {
      "type": "number"
    },
    "hasMore": {
      "type": "boolean"
    },
    "nextOffset": {
      "type": [
        "number",
        "null"
      ]
    },
    "dated": {
      "type": "boolean"
    },
    "priceBasis": {
      "type": "string",
      "enum": [
        "from-nightly-accommodation",
        "dated-stay-accommodation-pre-tax"
      ]
    },
    "checkin": {
      "type": "string"
    },
    "checkout": {
      "type": "string"
    },
    "guests": {
      "type": "number"
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "properties",
    "count",
    "hasMore",
    "nextOffset",
    "dated",
    "note"
  ],
  "additionalProperties": false
}