{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kontaktio/main/json-schema/kontaktio-occupancy-footfall-current-schema.json",
  "title": "Occupancy-Footfall-Current",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kontaktio-occupancy-footfall-api-openapi.yml#/components/schemas/Occupancy-Footfall-Current",
  "type": "object",
  "x-stoplight": {
    "id": "fc7b9557b3076"
  },
  "properties": {
    "content": {
      "type": "array",
      "uniqueItems": true,
      "minItems": 0,
      "items": {
        "type": "object",
        "properties": {
          "spaceId": {
            "type": "string",
            "minLength": 1
          },
          "spaceName": {
            "type": "string",
            "minLength": 1
          },
          "lastUpdate": {
            "type": "string",
            "minLength": 1
          },
          "occupancy": {
            "type": "number",
            "description": "Count of people in the footfall location; calculated by subtracting the exit (outbound) count from the entry (inbound) count."
          }
        },
        "required": [
          "spaceId",
          "spaceName",
          "lastUpdate",
          "occupancy"
        ]
      }
    }
  },
  "required": [
    "content"
  ]
}