{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kontaktio/main/json-schema/kontaktio-occupancy-room-attributes-current-schema.json",
  "title": "Occupancy-Room-Attributes-Current",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kontaktio-occupancy-seats-api-openapi.yml#/components/schemas/Occupancy-Room-Attributes-Current",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "uniqueItems": true,
      "minItems": 0,
      "items": {
        "type": "object",
        "properties": {
          "roomId": {
            "type": "number",
            "description": "ID of Room in which occupancy was calculated."
          },
          "roomName": {
            "type": "string",
            "minLength": 1,
            "description": "Name of Room in which occupancy was calculated."
          },
          "floorId": {
            "type": "number",
            "description": "ID of the Floor in which occupancy was calculated."
          },
          "floorName": {
            "type": "string",
            "minLength": 1,
            "description": "Name of the Floor in which occupancy was calculated."
          },
          "buildingId": {
            "type": "number",
            "description": "ID of the Building in which occupancy was calculated."
          },
          "buildingName": {
            "type": "string",
            "minLength": 1,
            "description": "Name of the Building in which occupancy was calculated."
          },
          "campusId": {
            "type": "number",
            "description": "ID of the Campus in which occupancy was calculated."
          },
          "campusName": {
            "type": "string",
            "minLength": 1,
            "description": "Name of the Campus in which occupancy was calculated."
          },
          "attributeId": {
            "type": "string",
            "minLength": 1,
            "description": "Identifier of the Room (Seat) Attribute."
          },
          "attributeName": {
            "type": "string",
            "minLength": 1,
            "description": "User defined name of the Room (Seat) Attribute."
          },
          "lastUpdate": {
            "type": "string",
            "minLength": 1,
            "description": "Time of last occupancy update."
          },
          "occupancy": {
            "type": "number",
            "description": "Number of people detected in the given time range."
          }
        },
        "required": [
          "roomId",
          "attributeId",
          "lastUpdate",
          "occupancy"
        ]
      }
    }
  }
}