{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cityoftrees-house/json-schema/cityoftrees-house-stay-schema.json",
  "title": "Stay",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cityoftrees-house-openapi.json#/components/schemas/Stay",
  "type": "object",
  "properties": {
    "checkIn": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "checkOut": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "guests": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "petCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2
    }
  },
  "required": [
    "checkIn",
    "checkOut",
    "guests",
    "petCount"
  ],
  "additionalProperties": false
}