mirror of
https://github.com/PlaneQuery/OpenAirframes.git
synced 2026-09-17 11:25:27 +02:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user