feat(workbench): add runtime GIS and sample integrations

This commit is contained in:
2026-09-22 10:44:31 +08:00
parent a3b4e75317
commit 7ab9b36a5e
62 changed files with 6685 additions and 51 deletions
+15
View File
@@ -0,0 +1,15 @@
"""Generate the independent peripheral sample contract without opening a DB."""
import json
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT))
from samples.peripheral.api import app
if __name__ == "__main__":
target = ROOT / "contracts/peripheral-sample.openapi.json"
target.write_text(json.dumps(app.openapi(), ensure_ascii=False, indent=2, sort_keys=True) + "\n", encoding="utf-8")
print(f"Exported {len(app.openapi()['paths'])} sample paths")