From 7e0a396fc7ddc085767958993abfaa61fa0fb9e5 Mon Sep 17 00:00:00 2001 From: ggman12 Date: Thu, 12 Feb 2026 15:55:44 -0500 Subject: [PATCH] only modify key parts of schemas/community_submission.v1.schema.json schema. Lowest diffs --- src/contributions/update_schema.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/contributions/update_schema.py b/src/contributions/update_schema.py index 6a76cad..05b6385 100644 --- a/src/contributions/update_schema.py +++ b/src/contributions/update_schema.py @@ -58,18 +58,9 @@ def generate_updated_schema(base_schema: dict, tag_registry: dict[str, str]) -> for tag_name, type_name in sorted(tag_registry.items()): tag_properties[tag_name] = type_name_to_json_schema(type_name) - # Update tags definition - schema["properties"]["tags"] = { - "type": "object", - "description": "Community-defined tags. New tags can be added, but must use consistent types.", - "propertyNames": { - "type": "string", - "pattern": "^[a-z][a-z0-9_]{0,63}$" - }, - "properties": tag_properties, - # Still allow additional properties for new tags - "additionalProperties": {"$ref": "#/$defs/tagValue"} - } + # Only add/update the properties key within tags, preserve everything else + if "properties" in schema and "tags" in schema["properties"]: + schema["properties"]["tags"]["properties"] = tag_properties return schema