Skip to content

Commit 83b1519

Browse files
committed
fix oas script
1 parent a8dafc4 commit 83b1519

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,9 @@ init-angular: ## Initialize Angular project
5555
init: init-openapi init-angular ## Initialize the project
5656

5757

58-
update-openapi: ## Update OpenAPI submodule
59-
@if [ ! -f "mist_openapi/.git" ]; then \
60-
echo "OpenAPI submodule not initialized. Run 'make openapi-setup' first."; \
61-
exit 1; \
62-
fi
63-
@echo "Updating OpenAPI submodule..."; \
64-
git submodule update --remote mist_openapi
58+
update-openapi: init-openapi ## Update OpenAPI submodule
6559
@echo "Generating code from OpenAPI spec..."
60+
@python3 ./scripts/oas_converter.py
6661

6762

6863
run: ## Run the Angular application

angular/src/assets/api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)