{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/university-of-twente/blob/main/json-schema/building.json",
  "title": "Building",
  "description": "A University of Twente campus resource \u2014 an individual building or a campus-wide aggregate \u2014 together with the energy types metered for it.",
  "type": "object",
  "required": [
    "name",
    "energyTypes"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Lower-case, hyphenated resource slug, e.g. 'bastille' or 'universiteit-twente' for the campus aggregate."
    },
    "energyTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "electricity",
          "gas",
          "heat",
          "water",
          "solar"
        ]
      },
      "description": "Energy types with metered data available for this resource."
    }
  },
  "additionalProperties": false,
  "x-generated": "2026-09-01",
  "x-method": "derived",
  "x-source": "openapi/_original/university-of-twente-energy-api-openapi.json",
  "x-operator": "institution"
}
