From ee6bd96f49d7c641be60c1de94fd2b8108e1c0cb Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Sat, 18 Nov 2023 19:18:26 -0800 Subject: [PATCH] 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