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

117 lines
3.1 KiB
JSON

{
"$id": "AddAddress",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "AddAddress",
"description": "See http://10.0.10.242/w/tricore_architecture/server_interface/account_commands/addaddress/",
"type": "object",
"required": [
"DeviceToken",
"SessionToken",
"AddressDescription",
"Address1",
"Town",
"PostCode",
"Country"
],
"additionalProperties": false,
"properties": {
"DeviceToken": {
"$ref": "defs/#/definitions/DeviceToken"
},
"SessionToken": {
"$ref": "defs/#/definitions/SessionToken"
},
"AddressDescription": {
"allOf": [
{
"minLength": 2,
"maxLength": 150,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"BuildingNameFlat": {
"allOf": [
{
"minLength": 0,
"maxLength": 64,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"Address1": {
"allOf": [
{
"minLength": 4,
"maxLength": 64,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"Address2": {
"allOf": [
{
"minLength": 4,
"maxLength": 64,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"Town": {
"allOf": [
{
"minLength": 2,
"maxLength": 32,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"County": {
"allOf": [
{
"minLength": 3,
"maxLength": 32,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/generalTextSpace"
}
]
},
"PostCode": {
"allOf": [
{
"minLength": 4,
"maxLength": 15,
"ensureTrim": true
},
{
"$ref": "defs/#/definitions/fullAlphaNumericDashSpace"
}
]
},
"Country": {
"example": "United Kingdom",
"type": "string",
"const": "United Kingdom"
},
"PhoneNumber": {
"$ref": "defs/#/definitions/phoneNumber"
}
}
}