Skip to content

Commit

Permalink
Merge pull request #3 from ShipEngine/hbutler/add-is-default-warehous…
Browse files Browse the repository at this point in the history
…e-request-response

Add is_default flag to create warehouse request and response body
  • Loading branch information
TheHarrisButler authored May 17, 2023
2 parents fbbf26e + 7cdc8c7 commit 25aefb6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 26 deletions.
23 changes: 8 additions & 15 deletions requests/create_warehouse_request_body.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"$id": "create_warehouse_request_body",
"title": "create_warehouse_request_body",
"type": "object",
"required": [
"name",
"origin_address"
],
"required": ["name", "origin_address"],
"additionalProperties": false,
"allOf": [
{
Expand All @@ -17,6 +14,10 @@
"type": "string",
"minLength": 1
},
"is_default": {
"type": "boolean",
"default": false
},
"origin_address": {
"allOf": [
{
Expand Down Expand Up @@ -96,11 +97,7 @@
{
"title": "address_residential_indicator",
"type": "string",
"enum": [
"unknown",
"yes",
"no"
]
"enum": ["unknown", "yes", "no"]
}
]
}
Expand Down Expand Up @@ -189,11 +186,7 @@
{
"title": "address_residential_indicator",
"type": "string",
"enum": [
"unknown",
"yes",
"no"
]
"enum": ["unknown", "yes", "no"]
}
]
}
Expand All @@ -206,4 +199,4 @@
}
}
]
}
}
18 changes: 7 additions & 11 deletions responses/create_warehouse_response_body.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
"type": "string",
"minLength": 1
},
"is_default": {
"type": "boolean",
"default": false
},
"created_at": {
"type": "string",
"format": "date-time",
Expand Down Expand Up @@ -115,11 +119,7 @@
{
"title": "address_residential_indicator",
"type": "string",
"enum": [
"unknown",
"yes",
"no"
]
"enum": ["unknown", "yes", "no"]
}
]
}
Expand Down Expand Up @@ -208,11 +208,7 @@
{
"title": "address_residential_indicator",
"type": "string",
"enum": [
"unknown",
"yes",
"no"
]
"enum": ["unknown", "yes", "no"]
}
]
}
Expand All @@ -225,4 +221,4 @@
}
}
]
}
}

0 comments on commit 25aefb6

Please sign in to comment.