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": { 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", 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 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": {