bridge-node-server/node_server/schemas/AddDevice.json
Martin Donnelly 57bd6c8e6a init
2018-06-24 21:15:03 +01:00

65 lines
1.7 KiB
JSON

{
"$id": "AddDevice",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "AddDevice",
"description": "See http://10.0.10.242/w/tricore_architecture/server_interface/registration_commands/adddevice/",
"type": "object",
"required": [
"ClientName",
"Password",
"DeviceNumber",
"DeviceUuid",
"DeviceHardware",
"DeviceSoftware",
"Latitude",
"Longitude"
],
"additionalProperties": false,
"properties": {
"ClientName": {
"$ref": "defs/#/definitions/ClientName"
},
"Password": {
"$ref": "defs/#/definitions/sha256"
},
"DeviceNumber": {
"$ref": "defs/#/definitions/phoneNumber"
},
"DeviceUuid": {
"$ref": "defs/#/definitions/DeviceUuid"
},
"DeviceHardware": {
"allOf": [
{
"minLength": 0,
"maxLength": 75,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"DeviceSoftware": {
"allOf": [
{
"minLength": 0,
"maxLength": 75,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"Latitude": {
"$ref": "defs/#/definitions/latitude"
},
"Longitude": {
"$ref": "defs/#/definitions/longitude"
},
"Mode": {
"$ref": "defs/#/definitions/testMode"
}
}
}