From e26a34164022d425688cc296a2764fc6babfbc3d Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Mon, 17 Feb 2025 17:11:19 -0500 Subject: [PATCH] oh and edit exporter since I moved extras --- SchemaExporter/SchemaExporter.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/SchemaExporter/SchemaExporter.cs b/SchemaExporter/SchemaExporter.cs index 5c5aad09..4b15e469 100644 --- a/SchemaExporter/SchemaExporter.cs +++ b/SchemaExporter/SchemaExporter.cs @@ -98,7 +98,7 @@ public static class SchemaExporter break; } - if (_title is "Star System Schema" or "Celestial Body Schema" or "Title Screen Schema") + if (_title is "Star System Schema" or "Celestial Body Schema") { schema.Properties["extras"] = new JsonSchemaProperty { Type = JsonObjectType.Object, @@ -111,6 +111,19 @@ public static class SchemaExporter }; } + if (_title is "Title Screen Schema") + { + schema.Definitions["TitleScreenInfo"].Properties["extras"] = new JsonSchemaProperty { + Type = JsonObjectType.Object, + Description = "Extra data that may be used by extension mods", + AllowAdditionalProperties = true, + AdditionalPropertiesSchema = new JsonSchema + { + Type = JsonObjectType.Object + } + }; + } + return schema; } }