shipengine-json-schema
Version:
The official JSON Schemas for ShipEngine™
91 lines • 2.27 kB
JSON
{
"$id": "update_package_type_request_body",
"title": "update_package_type_request_body",
"type": "object",
"additionalProperties": false,
"allOf": [
{
"title": "package_type",
"type": "object",
"required": [
"name",
"package_code"
],
"additionalProperties": false,
"properties": {
"package_id": {
"allOf": [
{
"title": "se_id",
"type": "string",
"minLength": 1,
"maxLength": 25,
"pattern": "^se(-[a-z0-9]+)+$"
}
]
},
"package_code": {
"allOf": [
{
"title": "package_code",
"type": "string",
"pattern": "^[a-z0-9]+(_[a-z0-9]+)*$"
}
]
},
"name": {
"type": "string",
"minLength": 1
},
"dimensions": {
"allOf": [
{
"title": "dimensions",
"type": "object",
"required": [
"unit",
"length",
"width",
"height"
],
"additionalProperties": false,
"properties": {
"unit": {
"default": "inch",
"allOf": [
{
"title": "dimension_unit",
"type": "string",
"enum": [
"inch",
"centimeter"
]
}
]
},
"length": {
"type": "number",
"format": "double",
"minimum": 0,
"default": 0
},
"width": {
"type": "number",
"format": "double",
"minimum": 0,
"default": 0
},
"height": {
"type": "number",
"format": "double",
"minimum": 0,
"default": 0
}
}
}
]
}
}
}
]
}