Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/matrixrmapi/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import aiohttp

from matrixrmapi import __version__
from matrixrmapi.app import get_app


LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -76,6 +75,9 @@ def dump_openapi(ctx: click.Context) -> None:
"""
Dump autogenerate openapi spec as JSON
"""
# Import only here to avoid waiting on other commands
from matrixrmapi.app import get_app

app = get_app()
click.echo(json.dumps(app.openapi()))
ctx.exit(0)
Expand Down
Loading