{
  "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.humidity.json#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description" : "Copyright (c) 2016, 2017 Open Connectivity Foundation, Inc. All rights reserved.",
  "title": "Humidity",
  "definitions": {
    "oic.r.humidity": {
      "type": "object",
      "properties": {
        "humidity":    {
          "type": "integer",
          "readOnly": true,
          "description": "Current sensed value for Humidity",
          "minimum": 0,
          "maximum": 100
        },
        "desiredHumidity":  {
          "type": "integer",
          "description": "Desired value for Humidity",
          "minimum": 0,
          "maximum": 100
        }
      }
    }
  },
  "type": "object",
  "allOf": [
    {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"},
    {"$ref": "#/definitions/oic.r.humidity"}
  ],
  "required": ["humidity"]
}
