117 lines
3.1 KiB
JSON
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"
|
|
}
|
|
}
|
|
} |