-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvalidate_address_request_body.json
94 lines (94 loc) · 2.43 KB
/
validate_address_request_body.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"$id": "validate_address_request_body",
"title": "validate_address_request_body",
"type": "array",
"items": {
"allOf": [
{
"title": "address_to_validate",
"type": "object",
"required": [
"address_line1",
"city_locality",
"state_province",
"country_code"
],
"additionalProperties": false,
"allOf": [
{
"title": "partial_address",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"phone": {
"type": "string",
"minLength": 1
},
"company_name": {
"type": "string",
"minLength": 1
},
"address_line1": {
"type": "string",
"minLength": 1
},
"address_line2": {
"type": "string",
"minLength": 1
},
"address_line3": {
"type": "string",
"minLength": 1
},
"city_locality": {
"type": "string",
"minLength": 1
},
"state_province": {
"type": "string",
"minLength": 1
},
"postal_code": {
"allOf": [
{
"title": "postal_code",
"minLength": 1,
"type": "string"
}
]
},
"country_code": {
"allOf": [
{
"title": "country_code",
"type": "string",
"minLength": 2,
"maxLength": 2
}
]
},
"address_residential_indicator": {
"default": "unknown",
"allOf": [
{
"title": "address_residential_indicator",
"type": "string",
"enum": [
"unknown",
"yes",
"no"
]
}
]
}
}
}
]
}
]
}
}