From 0792c6b8a3160f9096468438ce867389dac9cf37 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 29 Mar 2024 16:36:47 +0100 Subject: [PATCH] More sane swagger-typescript-api generator parameters --- backend/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/Makefile b/backend/Makefile index 4e6e20e..039340c 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -105,7 +105,11 @@ docs: swag init -outputTypes go api: ./docs/swagger.json - npx swagger-typescript-api --path ./docs/swagger.json --output ../frontend/src/API --name GAPI.ts + npx swagger-typescript-api \ + --api-class-name GenApi \ + --path ./docs/swagger.json \ + --output ../frontend/src/API \ + --name GenApi.ts \ ./docs/swagger.json: swag init -outputTypes json