expressCart/lib/schemas/newCustomer.json

56 lines
1.1 KiB
JSON
Raw Normal View History

2019-11-16 09:02:15 +10:00
{
2019-11-16 20:57:48 +10:00
"$id": "newCustomer",
2019-11-16 09:02:15 +10:00
"type": "object",
"properties": {
"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": {
2019-11-16 20:57:48 +10:00
"type": "string",
"isNotEmpty": true
2019-11-16 09:02:15 +10:00
}
},
"required": [
"email",
"firstName",
"lastName",
"address1",
"country",
"state",
"postcode",
"phone",
"password"
]
}