From 361189118df305989b6c531e67d80bbf74cc6406 Mon Sep 17 00:00:00 2001 From: yusing Date: Thu, 9 Apr 2026 16:45:15 +0800 Subject: [PATCH] chore(make): remove --axios from swagger-typescript-api codegen Drop the `--axios` flag from the `gen-api-types` target and reflow the `bunx` `swagger-typescript-api generate` arguments for clearer continuation lines. Now generated api.ts is fetch API based and no longer rely on axios. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 66ef2a40..c314ef85 100755 --- a/Makefile +++ b/Makefile @@ -198,8 +198,8 @@ gen-swagger: gen-api-types: gen-swagger # --disable-throw-on-error - bunx --bun swagger-typescript-api generate --sort-types --generate-union-enums --axios --add-readonly --route-types \ - --responses -o ${WEBUI_DIR}/src/lib -n api.ts -p internal/api/v1/docs/swagger.json + bunx --bun swagger-typescript-api generate --sort-types --generate-union-enums --add-readonly --route-types \ + --responses -o ${WEBUI_DIR}/src/lib -n api.ts -p internal/api/v1/docs/swagger.json .PHONY: gen-cli build-cli update-wiki