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

49 lines
1.2 KiB
JSON

{
"$id": "PINReset",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "PINReset Command",
"description": "Schema for PINReset command",
"type": "object",
"required": [
"ClientName",
"Password",
"DeviceNumber",
"DeviceUuid",
"Latitude",
"Longitude",
"DeviceAuthorisation"
],
"additionalProperties": false,
"properties": {
"ClientName": {
"$ref": "defs/#/definitions/email"
},
"Password": {
"$ref": "defs/#/definitions/sha256"
},
"DeviceNumber": {
"$ref": "defs/#/definitions/phoneNumber"
},
"DeviceUuid": {
"allOf": [
{
"$ref": "defs/#/definitions/generalTextSpace"
},
{
"minLength": 30,
"maxLength": 150,
"ensureTrim": true
}
]
},
"Latitude": {
"$ref": "defs/#/definitions/latitude"
},
"Longitude": {
"$ref": "defs/#/definitions/longitude"
},
"DeviceAuthorisation": {
"$ref": "defs/#/definitions/sha256"
}
}
}