From 7603bcfd674672c2d0e863fdcfa5a1622d81d697 Mon Sep 17 00:00:00 2001 From: Space Admiral Date: Sun, 18 Dec 2022 21:39:25 -0800 Subject: [PATCH] rename speed to flight mode --- models/ShipNav.json | 6 +++--- .../{ShipNavSpeed.json => ShipNavFlightMode.json} | 2 +- models/Shipyard.json | 14 +++++++++++++- 3 files changed, 17 insertions(+), 5 deletions(-) rename models/{ShipNavSpeed.json => ShipNavFlightMode.json} (57%) diff --git a/models/ShipNav.json b/models/ShipNav.json index 4250faf..c6aaf57 100644 --- a/models/ShipNav.json +++ b/models/ShipNav.json @@ -16,8 +16,8 @@ "status": { "$ref": "./ShipNavStatus.json" }, - "speed": { - "$ref": "./ShipNavSpeed.json" + "flightMode": { + "$ref": "./ShipNavFlightMode.json" } }, "required": [ @@ -25,6 +25,6 @@ "waypointSymbol", "route", "status", - "speed" + "flightMode" ] } \ No newline at end of file diff --git a/models/ShipNavSpeed.json b/models/ShipNavFlightMode.json similarity index 57% rename from models/ShipNavSpeed.json rename to models/ShipNavFlightMode.json index 0afac5d..39dee56 100644 --- a/models/ShipNavSpeed.json +++ b/models/ShipNavFlightMode.json @@ -1,6 +1,6 @@ { "type": "string", - "description": "The ship's set speed when travelling between waypoints.", + "description": "The ship's set speed when traveling between waypoints or systems.", "enum": [ "DRIFT", "STEALTH", diff --git a/models/Shipyard.json b/models/Shipyard.json index 9803aad..d63a7f9 100644 --- a/models/Shipyard.json +++ b/models/Shipyard.json @@ -7,6 +7,18 @@ "description": "The symbol of the shipyard. The symbol is the same as the waypoint where the shipyard is located.", "minLength": 1 }, + "shipTypes": { + "type": "array", + "description": "The list of ship types available for purchase at this shipyard.", + "items": { + "type": "object", + "properties": { + "type": { + "$ref": "./ShipType.json" + } + } + } + }, "transactions": { "type": "array", "description": "The list of recent transactions at this shipyard.", @@ -24,6 +36,6 @@ }, "required": [ "symbol", - "ships" + "shipTypes" ] } \ No newline at end of file