{
  "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.light.dimming.json#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description" : "Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.",
  "title": "Dimming",
  "definitions": {
    "oic.r.light.dimming": {
      "type": "object",
      "properties": {
        "dimmingSetting":  {
          "type": "integer",
          "description": "Current dimming value",
          "default": 30
        },
        "step":   {
          "type": "integer",
          "readOnly": true,
          "description": "step increment for dimming values",
          "default": 5
        },
        "range":  {
          "type": "array",
          "readOnly": true,
          "description": "Min and Max values for the dimming setting",
          "items": {
            "type": "integer"
          },
          "default": [0, 100]
        }
      }
    }
  },
  "type": "object",
  "allOf": [
    {"$ref": "oic.core.json#/definitions/oic.core"},
    {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"},
    {"$ref": "#/definitions/oic.r.light.dimming"}
  ],
  "required": ["dimmingSetting"]
}
