expressCart/lib/schemas/editCustomer.json

57 lines
1.2 KiB
JSON
Raw Normal View History

2019-11-16 09:02:15 +10:00
{
2019-11-16 20:57:48 +10:00
"$id": "editCustomer",
2019-11-16 09:02:15 +10:00
"type": "object",
"properties": {
"company": {
"type": "string"
},
2019-11-16 09:02:15 +10:00
"email": {
"type": "string",
2019-11-16 12:22:54 +10:00
"format": "emailAddress"
2019-11-16 09:02:15 +10:00
},
"firstName": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
},
"lastName": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
},
"address1": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
},
"address2": {
"type": "string"
},
"country": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
},
"state": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
},
"postcode": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
},
"phone": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
},
"password": {
"type": "string"
}
},
"required": [
"email",
"firstName",
"lastName",
"address1",
"country",
"state",
"postcode",
2019-11-16 20:57:48 +10:00
"phone"
2019-11-16 09:02:15 +10:00
]
}