api-docs/models/ShipFuel.json

40 lines
1.1 KiB
JSON
Raw Normal View History

2022-09-18 17:49:41 +02:00
{
"type": "object",
"description": "Details of the ship's fuel tanks including how much fuel was consumed during the last transit or action.",
"properties": {
2022-12-07 17:24:07 +01:00
"current": {
2022-09-18 17:49:41 +02:00
"type": "integer",
2022-12-07 17:24:07 +01:00
"description": "The current amount of fuel in the ship's tanks.",
2022-09-18 17:49:41 +02:00
"minimum": 0
},
2022-09-19 19:22:16 +02:00
"capacity": {
2022-09-18 17:49:41 +02:00
"type": "integer",
"description": "The maximum amount of fuel the ship's tanks can hold.",
"minimum": 0
},
"consumed": {
"type": "object",
2023-06-09 22:50:36 +02:00
"description": "An object that only shows up when an action has consumed fuel in the process. Shows the fuel consumption data.",
2022-09-18 17:49:41 +02:00
"properties": {
"amount": {
"type": "integer",
"description": "The amount of fuel consumed by the most recent transit or action.",
"minimum": 0
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The time at which the fuel was consumed."
}
},
"required": [
"amount",
"timestamp"
]
}
2022-10-22 18:05:01 +02:00
},
"required": [
2022-12-07 17:24:07 +01:00
"current",
2022-10-22 18:05:01 +02:00
"capacity"
]
2022-09-18 17:49:41 +02:00
}