api-docs/models/ShipCargo.json

28 lines
627 B
JSON
Raw Normal View History

2022-09-18 17:49:41 +02:00
{
"type": "object",
"properties": {
2022-09-19 19:22:16 +02:00
"capacity": {
2022-09-18 17:49:41 +02:00
"type": "integer",
2022-10-06 01:42:15 +02:00
"description": "The max number of items that can be stored in the cargo hold.",
2022-09-18 17:49:41 +02:00
"minimum": 0
},
2022-10-28 06:09:27 +02:00
"units": {
"type": "integer",
"description": "The number of items currently stored in the cargo hold.",
"minimum": 0
},
2022-09-18 17:49:41 +02:00
"inventory": {
"type": "array",
2022-10-06 01:42:15 +02:00
"description": "The items currently in the cargo hold.",
2022-09-18 17:49:41 +02:00
"items": {
2022-10-06 01:42:15 +02:00
"$ref": "./ShipCargoItem.json"
2022-10-22 18:05:01 +02:00
}
2022-09-18 17:49:41 +02:00
}
2022-10-22 18:05:01 +02:00
},
"required": [
"capacity",
2022-10-28 06:09:27 +02:00
"units",
2022-10-22 18:05:01 +02:00
"inventory"
2023-06-09 22:50:36 +02:00
],
"description": "Ship cargo details."
2022-09-18 17:49:41 +02:00
}