api-docs/models/ShipCargo.json

27 lines
587 B
JSON
Raw Permalink 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"
]
2022-09-18 17:49:41 +02:00
}