Merge test folder of test branch
[iotivity.git] / test / res / raml / oic.r.light.json
1 {
2   "id": "http://openinterconnect.org/schemas/oic.r.light#",
3   "$schema": "http://json-schema.org/schema#",
4   "title": "OIC Light",
5   "$ref": "#/definitions/oic.r.light",
6   "definitions": {
7     "oic.r.light": {
8       "type": "object",
9       "properties": {
10                 "rt": {
11           "type": "string",
12           "description": "Description about resource type",
13           "default": "oic.r.light"
14         },
15                 "if": {
16           "type": "string",
17           "description": "Interface supported",
18           "default": "oic.if.baseline"
19         },
20                 "power": {
21                   "type": "string",
22                   "description": "Light status",
23                   "default": "on",
24                   "enum": ["on","off"],
25                   "update_frequency": 1000
26                   },
27                 "intensity": {
28                   "type": "integer",
29                   "description": "brightness of the light",
30                   "default": 1,
31                   "minimum": 1,
32           "maximum": 9,           
33                   "update_frequency": 1001
34                   }
35                  }
36                 }
37         },      
38   "required": [ "rt","if","power" ]
39 }