minor cleanup of types

This commit is contained in:
Space Admiral 2022-09-19 10:22:16 -07:00 committed by space-admiral
parent eea39e49c0
commit 439d2eca04
7 changed files with 14 additions and 15 deletions

View File

@ -12,7 +12,7 @@
"description": "The remaining duration of the cooldown in seconds", "description": "The remaining duration of the cooldown in seconds",
"minimum": 0 "minimum": 0
}, },
"expiresAt": { "expiration": {
"type": "string", "type": "string",
"format": "date-time", "format": "date-time",
"description": "The date and time when the cooldown expires in ISO 8601 format", "description": "The date and time when the cooldown expires in ISO 8601 format",

View File

@ -1,7 +1,7 @@
{ {
"type": "object", "type": "object",
"properties": { "properties": {
"size": { "capacity": {
"type": "integer", "type": "integer",
"minimum": 0 "minimum": 0
}, },

View File

@ -23,13 +23,12 @@
}, },
"rotation": { "rotation": {
"type": "string", "type": "string",
"description": "The rotation of crew shifts. Stricter shifts can improve the ship's performance, and more relaxed shifts can improve the crew's morale.", "description": "The rotation of crew shifts. A stricter shift improves the ship's performance. A more relaxed shift improves the crew's morale.",
"enum": [ "enum": [
"STRICT", "STRICT",
"STANDARD",
"RELAXED" "RELAXED"
], ],
"default": "STANDARD" "default": "STRICT"
}, },
"morale": { "morale": {
"type": "integer", "type": "integer",

View File

@ -7,7 +7,7 @@
"description": "The amount of fuel in the ship's tanks.", "description": "The amount of fuel in the ship's tanks.",
"minimum": 0 "minimum": 0
}, },
"max": { "capacity": {
"type": "integer", "type": "integer",
"description": "The maximum amount of fuel the ship's tanks can hold.", "description": "The maximum amount of fuel the ship's tanks can hold.",
"minimum": 0 "minimum": 0

View File

@ -17,7 +17,7 @@
"The Flying Dutchman" "The Flying Dutchman"
] ]
}, },
"faction": { "factionSymbol": {
"type": "string", "type": "string",
"description": "The symbol of the faction the ship is registered with", "description": "The symbol of the faction the ship is registered with",
"minLength": 1, "minLength": 1,

View File

@ -4,15 +4,15 @@
"properties": { "properties": {
"power": { "power": {
"type": "integer", "type": "integer",
"minimum": 0 "description": "The amount of power required from the reactor."
}, },
"crew": { "crew": {
"type": "integer", "type": "integer",
"minimum": 0 "description": "The number of crew required for operation."
},
"slots": {
"type": "integer",
"description": "The number of module slots required for installation."
} }
}, }
"required": [
"power",
"crew"
]
} }

View File

@ -496,7 +496,7 @@
"Success": { "Success": {
"value": { "value": {
"data": { "data": {
"status": "ORBIT" "status": "IN_ORBIT"
} }
} }
} }