From 4d1f650fd035237445bef74ac626d32313415cb7 Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Sat, 18 Nov 2023 12:15:43 -0800 Subject: [PATCH 1/4] Shipyard.shipTypes.type should not be optional. --- models/Shipyard.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/Shipyard.json b/models/Shipyard.json index d7762f0..dd27552 100644 --- a/models/Shipyard.json +++ b/models/Shipyard.json @@ -16,7 +16,10 @@ "type": { "$ref": "./ShipType.json" } - } + }, + "required": [ + "type" + ] } }, "transactions": { From 09d6a8b757e0caffc72e3ccd315e6c055a62f1d7 Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Sat, 18 Nov 2023 12:58:08 -0800 Subject: [PATCH 2/4] also shipyardShip type --- models/ShipyardShip.json | 1 + 1 file changed, 1 insertion(+) diff --git a/models/ShipyardShip.json b/models/ShipyardShip.json index 21adc34..b3c0870 100644 --- a/models/ShipyardShip.json +++ b/models/ShipyardShip.json @@ -58,6 +58,7 @@ } }, "required": [ + "type", "symbol", "name", "description", From ee6bd96f49d7c641be60c1de94fd2b8108e1c0cb Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Sat, 18 Nov 2023 19:18:26 -0800 Subject: [PATCH 3/4] more enum normalizing --- models/WaypointModifier.json | 10 +--------- models/WaypointModifierSymbol.json | 11 +++++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 models/WaypointModifierSymbol.json diff --git a/models/WaypointModifier.json b/models/WaypointModifier.json index c8c5b0f..d88d2d3 100644 --- a/models/WaypointModifier.json +++ b/models/WaypointModifier.json @@ -2,15 +2,7 @@ "type": "object", "properties": { "symbol": { - "type": "string", - "description": "The unique identifier of the modifier.", - "enum": [ - "STRIPPED", - "UNSTABLE", - "RADIATION_LEAK", - "CRITICAL_LIMIT", - "CIVIL_UNREST" - ] + "$ref": "./WaypointModifierSymbol.json" }, "name": { "type": "string", diff --git a/models/WaypointModifierSymbol.json b/models/WaypointModifierSymbol.json new file mode 100644 index 0000000..f540017 --- /dev/null +++ b/models/WaypointModifierSymbol.json @@ -0,0 +1,11 @@ +{ + "type": "string", + "description": "The unique identifier of the modifier.", + "enum": [ + "STRIPPED", + "UNSTABLE", + "RADIATION_LEAK", + "CRITICAL_LIMIT", + "CIVIL_UNREST" + ] +} \ No newline at end of file From 5dfe897af18e92d761e77a3e318a9a1baaa30c78 Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Mon, 27 Nov 2023 15:32:17 -0800 Subject: [PATCH 4/4] fix supply-construction response code --- reference/SpaceTraders.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index 61729f0..22b08ab 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -867,7 +867,7 @@ "description": "" }, "responses": { - "200": { + "201": { "content": { "application/json": { "schema": {