fix: resolve the community schema version at runtime

- write through get_schema_path() instead of a literal v1 filename
- drop the unreferenced SCHEMA_PATH backwards-compatibility shim
- widen the community PR trigger to schemas/** so a version bump still fires it

Generated-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Ashley Childress
2026-08-31 17:46:42 -04:00
parent 3023c5015e
commit ba97448365
4 changed files with 7 additions and 10 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ from src.contributions.update_schema import (
check_for_new_tags,
generate_updated_schema,
)
from src.contributions.schema import load_schema, SCHEMAS_DIR
from src.contributions.schema import load_schema, get_schema_path
def main():
@@ -51,8 +51,8 @@ def main():
# Generate updated schema
updated_schema = generate_updated_schema(current_schema, tag_registry)
# Write updated schema (in place)
schema_path = SCHEMAS_DIR / "community_submission.v1.schema.json"
# Write back to whichever version load_schema() resolved to
schema_path = get_schema_path()
with open(schema_path, 'w') as f:
json.dump(updated_schema, f, indent=2)
f.write("\n")