Skip to content

Commit e65204f

Browse files
committed
reflect updates on openapi spec
1 parent 4d440b6 commit e65204f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ azure-functions-functionapp-deploy: ## deploy Azure Functions App
140140
# ---
141141
.PHONY: generate-openapi-spec
142142
generate-openapi-spec: ## generate OpenAPI spec
143-
poetry run python main.py generate-openapi-spec
143+
cd backend \
144+
&& poetry run python main.py generate-openapi-spec
144145

145146
.PHONY: generate-openapi-client
146147
generate-openapi-client: ## generate OpenAPI client

backend/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def backend(
4242

4343
@app.command()
4444
def generate_openapi_spec(
45-
path: Annotated[str, typer.Option(help="Output file path")] = "./specs/openapi.json",
45+
path: Annotated[str, typer.Option(help="Output file path")] = "../specs/openapi.json",
4646
debug: Annotated[bool, typer.Option(help="Enable debug mode")] = False,
4747
):
4848
import json

0 commit comments

Comments
 (0)