{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.2/drawings/view-lighting.schema.json",
  "$comment": "OpenEik 0.2: folded by tools/fold-schemas.mjs from the proposal electrical, which 0.2 makes a rule (decision D5). Written by hand from the text, not generated.",
  "title": "A view's lighting",
  "description": "A 3D view's lighting scene, its display.lighting (Part XIII, 4.3: which luminaires are on, and the level of each that is on and dimmed. A view without it has every luminaire off; the elements are never touched. Only on a view of kind 3d (rule 1); an id of on names a luminaire, an electrical element of the kind light, spot, emergencyLight or track (rule 2); every key of dim is on (rule 3).",
  "type": "object",
  "properties": {
    "on": {
      "description": "The luminaires that are on: \"all\", every luminaire of the model, those added after the scene was made among them; or their ids, each once. Every other luminaire is off.",
      "anyOf": [
        {
          "const": "all"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "x-eik-ref": "element"
          },
          "minItems": 1,
          "maxItems": 10000,
          "uniqueItems": true
        }
      ]
    },
    "dim": {
      "description": "The level of each luminaire that is on and not at full, by its id: an integer from 1 to 99, in per cent of its full light. A luminaire at full has no entry, and one that is off none either: 100 is never stored.",
      "type": "object",
      "additionalProperties": {
        "type": "integer",
        "minimum": 1,
        "maximum": 99
      },
      "propertyNames": {
        "minLength": 1
      },
      "maxProperties": 10000
    }
  },
  "required": [
    "on"
  ],
  "x-eik-closed": true
}
