api-docs/models/ShipFuel.json
2023-06-09 23:50:36 +03:00

40 lines
1.1 KiB
JSON

{
"type": "object",
"description": "Details of the ship's fuel tanks including how much fuel was consumed during the last transit or action.",
"properties": {
"current": {
"type": "integer",
"description": "The current amount of fuel in the ship's tanks.",
"minimum": 0
},
"capacity": {
"type": "integer",
"description": "The maximum amount of fuel the ship's tanks can hold.",
"minimum": 0
},
"consumed": {
"type": "object",
"description": "An object that only shows up when an action has consumed fuel in the process. Shows the fuel consumption data.",
"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"
]
}
},
"required": [
"current",
"capacity"
]
}