From 20a697eefda136389ae05e00af6f7d58db271b46 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Thu, 26 Jun 2025 22:11:29 +0200 Subject: [PATCH] Fix formatting and swagger --- routers/api/v1/swagger/options.go | 2 +- templates/swagger/v1_json.tmpl | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index e6168afdad2..cf2dc951153 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -225,5 +225,5 @@ type swaggerParameterBodies struct { // in:body UpdateProjectPayload api.UpdateProjectPayload - LockIssueOption api.LockIssueOption + LockIssueOption api.LockIssueOption } diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 7e7c0b68379..5f7f8d6e846 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -26878,7 +26878,7 @@ "board_type": { "type": "integer", "format": "uint8", - "x-go-name": "BoardType" + "x-go-name": "TemplateType" }, "closed_at": { "type": "string", @@ -30035,6 +30035,9 @@ "description": "parameterBodies", "schema": { "$ref": "#/definitions/LockIssueOption" + }, + "headers": { + "LockIssueOption": {} } }, "redirect": { @@ -30133,3 +30136,4 @@ "TOTPHeader": [] } ] +} \ No newline at end of file