{
  "id": "http://openinterconnect.org/iotdatamodels/schemas/oic.r.energy.battery-Update.json#",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description" : "Copyright (c) 2017 Open Connectivity Foundation, Inc. All rights reserved.",
  "title": "Battery",
  "definitions": {
    "oic.r.energy.battery": {
      "type": "object",
      "properties": {
        "batterythreshold" : {
          "type": "integer",
          "description": "The threshold percentage for the low battery warning.",
          "minimum": 0,
          "maximum": 100
        }
      }
    }
  },
  "type": "object",
  "allOf": [
    {"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"},
    {"$ref": "#/definitions/oic.r.energy.battery"}
  ],
  "required": [ "batterythreshold" ]
}