Merge pull request #80 from kjackson1998/shipyard-shiptype-not-optional

Various fixes: Shipyard.shiptyps.type, supply-contruction:201, enum normalizing
This commit is contained in:
SpaceAdmiral 2023-12-05 08:34:19 -08:00 committed by GitHub
commit d2663cd2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 11 deletions

View File

@ -16,7 +16,10 @@
"type": { "type": {
"$ref": "./ShipType.json" "$ref": "./ShipType.json"
} }
} },
"required": [
"type"
]
} }
}, },
"transactions": { "transactions": {

View File

@ -58,6 +58,7 @@
} }
}, },
"required": [ "required": [
"type",
"symbol", "symbol",
"name", "name",
"description", "description",

View File

@ -2,15 +2,7 @@
"type": "object", "type": "object",
"properties": { "properties": {
"symbol": { "symbol": {
"type": "string", "$ref": "./WaypointModifierSymbol.json"
"description": "The unique identifier of the modifier.",
"enum": [
"STRIPPED",
"UNSTABLE",
"RADIATION_LEAK",
"CRITICAL_LIMIT",
"CIVIL_UNREST"
]
}, },
"name": { "name": {
"type": "string", "type": "string",

View File

@ -0,0 +1,11 @@
{
"type": "string",
"description": "The unique identifier of the modifier.",
"enum": [
"STRIPPED",
"UNSTABLE",
"RADIATION_LEAK",
"CRITICAL_LIMIT",
"CIVIL_UNREST"
]
}

View File

@ -867,7 +867,7 @@
"description": "" "description": ""
}, },
"responses": { "responses": {
"200": { "201": {
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {