{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kontaktio/main/json-schema/kontaktio-space-schema.json",
  "title": "Space",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kontaktio-spaces-api-openapi.yml#/components/schemas/Space",
  "type": "object",
  "x-stoplight": {
    "id": "zq0hm9au4ezzl"
  },
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "appType": {
      "$ref": "#/$defs/AppType"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SpaceItem"
      }
    }
  },
  "required": [
    "id",
    "name",
    "appType",
    "items"
  ],
  "$defs": {
    "AppType": {
      "x-stoplight": {
        "id": "muig4i86za48p"
      },
      "x-internal": false,
      "type": "string"
    },
    "SpaceItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/SpaceItemType"
        },
        "status": {
          "$ref": "#/$defs/SpaceItemStatus"
        }
      },
      "required": [
        "id",
        "type",
        "status"
      ],
      "x-stoplight": {
        "id": "3jvxvrcedw16o"
      }
    },
    "SpaceItemStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "SL_REMOVED"
      ],
      "x-stoplight": {
        "id": "bkh8vmwluk3ur"
      }
    },
    "SpaceItemType": {
      "type": "string",
      "enum": [
        "ROOM",
        "SEAT",
        "FOOTFALL"
      ],
      "x-stoplight": {
        "id": "2mqtd27sei0fb"
      }
    }
  }
}