Skip to content

Commit 8f0573d

Browse files
Merge pull request #4 from ShipEngine/hbutler/update-other-warehouse-requests-response
Add is_default key to get and update warehouse
2 parents 25aefb6 + 45ce9f5 commit 8f0573d

3 files changed

Lines changed: 23 additions & 40 deletions

File tree

requests/update_warehouse_request_body.json

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"$id": "update_warehouse_request_body",
33
"title": "update_warehouse_request_body",
44
"type": "object",
5-
"required": [
6-
"name",
7-
"origin_address"
8-
],
5+
"required": ["name", "origin_address"],
96
"additionalProperties": false,
107
"allOf": [
118
{
@@ -17,6 +14,10 @@
1714
"type": "string",
1815
"minLength": 1
1916
},
17+
"is_default": {
18+
"type": "boolean",
19+
"default": false
20+
},
2021
"origin_address": {
2122
"allOf": [
2223
{
@@ -96,11 +97,7 @@
9697
{
9798
"title": "address_residential_indicator",
9899
"type": "string",
99-
"enum": [
100-
"unknown",
101-
"yes",
102-
"no"
103-
]
100+
"enum": ["unknown", "yes", "no"]
104101
}
105102
]
106103
}
@@ -189,11 +186,7 @@
189186
{
190187
"title": "address_residential_indicator",
191188
"type": "string",
192-
"enum": [
193-
"unknown",
194-
"yes",
195-
"no"
196-
]
189+
"enum": ["unknown", "yes", "no"]
197190
}
198191
]
199192
}
@@ -206,4 +199,4 @@
206199
}
207200
}
208201
]
209-
}
202+
}

responses/get_warehouse_by_id_response_body.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
"type": "string",
3232
"minLength": 1
3333
},
34+
"is_default": {
35+
"type": "boolean",
36+
"default": false
37+
},
3438
"created_at": {
3539
"type": "string",
3640
"format": "date-time",
@@ -115,11 +119,7 @@
115119
{
116120
"title": "address_residential_indicator",
117121
"type": "string",
118-
"enum": [
119-
"unknown",
120-
"yes",
121-
"no"
122-
]
122+
"enum": ["unknown", "yes", "no"]
123123
}
124124
]
125125
}
@@ -208,11 +208,7 @@
208208
{
209209
"title": "address_residential_indicator",
210210
"type": "string",
211-
"enum": [
212-
"unknown",
213-
"yes",
214-
"no"
215-
]
211+
"enum": ["unknown", "yes", "no"]
216212
}
217213
]
218214
}
@@ -225,4 +221,4 @@
225221
}
226222
}
227223
]
228-
}
224+
}

responses/list_warehouses_response_body.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"$id": "list_warehouses_response_body",
33
"title": "list_warehouses_response_body",
44
"type": "object",
5-
"required": [
6-
"warehouses"
7-
],
5+
"required": ["warehouses"],
86
"additionalProperties": false,
97
"properties": {
108
"warehouses": {
@@ -31,6 +29,10 @@
3129
"type": "string",
3230
"minLength": 1
3331
},
32+
"is_default": {
33+
"type": "boolean",
34+
"default": false
35+
},
3436
"created_at": {
3537
"type": "string",
3638
"format": "date-time",
@@ -115,11 +117,7 @@
115117
{
116118
"title": "address_residential_indicator",
117119
"type": "string",
118-
"enum": [
119-
"unknown",
120-
"yes",
121-
"no"
122-
]
120+
"enum": ["unknown", "yes", "no"]
123121
}
124122
]
125123
}
@@ -208,11 +206,7 @@
208206
{
209207
"title": "address_residential_indicator",
210208
"type": "string",
211-
"enum": [
212-
"unknown",
213-
"yes",
214-
"no"
215-
]
209+
"enum": ["unknown", "yes", "no"]
216210
}
217211
]
218212
}
@@ -228,4 +222,4 @@
228222
}
229223
}
230224
}
231-
}
225+
}

0 commit comments

Comments
 (0)