oh and edit exporter since I moved extras

This commit is contained in:
Noah Pilarski 2025-02-17 17:11:19 -05:00
parent 1763a39fb0
commit e26a341640

View File

@ -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;
}
}