-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpostaladdress.struct.json
More file actions
43 lines (43 loc) · 1.29 KB
/
postaladdress.struct.json
File metadata and controls
43 lines (43 loc) · 1.29 KB
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
35
36
37
38
39
40
41
42
43
{
"$schema": "https://json-structure.org/meta/extended/v0/#",
"$id": "https://example.com/schemas/PostalAddress.json",
"name": "PostalAddress",
"description": "A postal address for shipping or billing",
"type": "object",
"properties": {
"id": {
"type": "uuid",
"description": "Unique identifier for the address"
},
"street": {
"type": "string",
"maxLength": 200,
"description": "Street address with house number"
},
"city": {
"type": "string",
"maxLength": 100,
"description": "City or municipality"
},
"state": {
"type": "string",
"maxLength": 50,
"description": "State, province, or region"
},
"postalCode": {
"type": "string",
"maxLength": 20,
"description": "ZIP or postal code"
},
"country": {
"type": "string",
"maxLength": 2,
"description": "ISO 3166-1 alpha-2 country code"
},
"createdAt": {
"type": "datetime",
"description": "When the address was created"
}
},
"required": ["id", "street", "city", "postalCode", "country"]
}