{
  "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.colour.hs.json#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description" : "Copyright (c) 2017 Open Connectivity Foundation, Inc. All rights reserved.",
  "title": "Colour Hue and Saturation",
  "definitions": {
    "oic.r.colour.hs": {
      "type": "object",
      "properties": {
        "hue": {
          "type": "number",
          "description": "Hue angle as defined by the CIECAM02 model definition",
          "minimum": 0.0,
          "maximum": 360.0
        },
        "saturation": {
          "type": "integer",
          "description": "Saturation as defined by the CIECAM02 model definition",
          "minimum": 0,
          "maximum": 32767
        },
        "maximumsaturation": {
          "type": "integer",
          "description": "Maximum supported value of Saturation for this Device",
          "readOnly": true,
          "minimum": 0,
          "maximum": 32767
        }
      }
    }
  },
  "type": "object",
  "allOf": [
    {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"},
    {"$ref": "#/definitions/oic.r.colour.hs"}
  ],
  "required": [ "hue", "saturation" ]

}
