-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.json
34 lines (34 loc) · 1.04 KB
/
customer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"id": "https://raw.githubusercontent.com/eviratec/schema/master/v1/customer.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "schema for a customer",
"type": "object",
"additionalProperties": false,
"required": [ "id", "contact", "accounts", "date_opened", "is_suspended" ],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"contact": { "$ref": "https://raw.githubusercontent.com/eviratec/schema/master/v1/contact.json#" },
"accounts": {
"type": "array",
"minItems": 1,
"items": { "$ref": "https://raw.githubusercontent.com/eviratec/schema/master/v1/customer/account.json#" },
"uniqueItems": true
},
"additional_contacts": {
"type": "array",
"items": { "$ref": "https://raw.githubusercontent.com/eviratec/schema/master/v1/contact.json#" },
"uniqueItems": true
},
"date_opened": {
"type": "string",
"format": "date-time"
},
"is_suspended": {
"type": "boolean",
"value": false
}
}
}