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

88 lines
2.3 KiB
JSON

{
"$id": "SetClientDetails",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "SetClientDetails",
"description": "See http://10.0.10.242/w/tricore_architecture/server_interface/registration_commands/setclientdetails/",
"type": "object",
"required": [
"DeviceToken",
"SessionToken",
"Title",
"FirstName",
"LastName",
"DateOfBirth",
"ResidentialAddressID",
"Gender"
],
"additionalProperties": false,
"properties": {
"DeviceToken": {
"$ref": "defs/#/definitions/DeviceToken"
},
"SessionToken": {
"$ref": "defs/#/definitions/SessionToken"
},
"Title": {
"allOf": [
{
"minLength": 2,
"maxLength": 20,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/alphaSpace"
}
]
},
"FirstName": {
"allOf": [
{
"minLength": 2,
"maxLength": 50,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/alphaSpace"
}
]
},
"MiddleNames": {
"allOf": [
{
"minLength": 0,
"maxLength": 50,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/alphaSpace"
}
]
},
"LastName": {
"allOf": [
{
"minLength": 2,
"maxLength": 50,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/alphaSpace"
}
]
},
"DateOfBirth": {
"$ref": "defs/#/definitions/date"
},
"ResidentialAddressID": {
"$ref": "defs/#/definitions/uuid"
},
"Gender": {
"description": "The gender as required by the ID verification/AML service.",
"type": "string",
"enum": [
"M",
"F"
]
}
}
}