"""Print the OpenAPI schema to stdout.

Used by scripts/generate-client.sh and by the CI freshness check, so neither needs a
running server to know what the API contract is.
"""

import json

from app.main import app


def main() -> None:
    print(json.dumps(app.openapi(), indent=2, sort_keys=True))


if __name__ == "__main__":
    main()
