{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.IoTDataModels/Brightness/schema.json", "title": "Brightness", "description": "Smart Data Models Program adaptation of the original IoTData data Models. This Resource describes the brightness of a light or lamp. The Property 'brightness' is an integer showing the current brightness level as a quantized representation in the range 0-100. A brightness of 0 is the minimum for the resource. A brightness of 100 is the maximum for the resource.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "rt": { "description": "Property. The Resource Type.", "items": { "enum": [ "oic.r.light.brightness" ], "maxLength": 64, "type": "string" }, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array" }, "brightness": { "description": "Property. The Quantized representation in the range 0-100 of the current sensed or set value for Brightness.", "maximum": 100, "minimum": 0, "type": "integer" }, "n": { "type": "string", "maxLength": 64, "readOnly": true, "description": "Property. Friendly name of the Resource" }, "if": { "description": "Property. The OCF Interface set supported by this Resource.", "items": { "enum": [ "oic.if.a", "oic.if.baseline" ], "type": "string" }, "minItems": 2, "uniqueItems": true, "readOnly": true, "type": "array" }, "type": { "type": "string", "enum": [ "Brightness" ], "description": "Property. NGSI entity type. It has to be Brightness" } } } ], "derivedFrom": "https://github.com/OpenInterConnect/IoTDataModels/blob/master/BrightnessResURI.swagger.json", "license": "https://github.com/OpenInterConnect/IoTDataModels/blob/master/README.md", "required": [ "id", "type" ] }