1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-11 19:29:16 +08:00
Mainflux.mainflux/schema/deviceSchema.json
Drasko DRASKOVIC 106c8996d4 Add schema
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2016-09-20 21:55:48 +02:00

73 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"default": "",
"readOnly": true
},
"name": {
"type": "string",
"default": "Unnamed Device"
},
"description": {
"type": "string",
"default": ""
},
"visibility": {
"type": "string",
"default": "private"
},
"status": {
"type": "string",
"default": "disabled"
},
"tags": {
"type": "array",
"items": {
"type": "string",
"default": ""
}
},
"location": {
"type": "object",
"properties": {
"name": {
"type": "string",
"default": ""
},
"latitude": {
"type": "number",
"default": 0
},
"longitude": {
"type": "number",
"default": 0
},
"elevation": {
"type": "integer",
"default": 0
}
},
"default": {"name": "", "latitude": 0, "longitude": 0, "elevation": 0}
},
"created": {
"type": "string",
"default": "",
"reaOnly": true
},
"updated": {
"type": "string",
"default": "",
"readOnly": true
},
"metadata": {
"type": "object",
"properties": {}
}
},
"additionalProperties": false
}