"""Export the FastAPI contract without opening a database or reading secrets.""" from __future__ import annotations import json import sys from typing import Any from app.main import create_app def export_schema() -> dict[str, Any]: """Build the deterministic application schema from import-safe contracts.""" return create_app().openapi() def main() -> None: sys.stdout.write( json.dumps( export_schema(), ensure_ascii=False, sort_keys=True, separators=(",", ":"), ) + "\n" ) if __name__ == "__main__": main()