From a7aabc5349b2e7c322b0d78da39a3ff196d3925c Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Sun, 22 Sep 2024 09:17:06 +0530 Subject: [PATCH] refactor: add the missing parameter bodies for project --- routers/api/v1/swagger/options.go | 6 ++++++ templates/swagger/v1_json.tmpl | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index 1de58632d57..f717a49094b 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -205,4 +205,10 @@ type swaggerParameterBodies struct { // in:body UpdateVariableOption api.UpdateVariableOption + + // in:body + NewProjectPayload api.NewProjectPayload + + // in:body + UpdateProjectPayload api.UpdateProjectPayload } diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 2fb80388ad7..f30c8b70e85 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -26745,7 +26745,7 @@ "parameterBodies": { "description": "parameterBodies", "schema": { - "$ref": "#/definitions/UpdateVariableOption" + "$ref": "#/definitions/UpdateProjectPayload" } }, "redirect": { @@ -26844,4 +26844,4 @@ "TOTPHeader": [] } ] -} +} \ No newline at end of file