From 9668d07f672f68288dfc718bdce90c3215a0ca97 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 27 Jul 2026 12:48:43 +0200 Subject: [PATCH] chore(deps): drop swagger:response duplicated by routers/api/v1/swagger go-swagger 0.35.1 added a scan.shared-response-conflict diagnostic, and the swagger target treats any output as an error. AccessToken and OAuth2Application declared a response that routers/api/v1/swagger/app.go already declares under the same name, which go-swagger dropped keep-first anyway, so the generated spec is unchanged. Response definitions live in routers/api/v1/swagger (130 of them, against 6 in modules/structs), so the duplicates are removed there. Assisted-by: Claude Code:Opus 5 --- modules/structs/user_app.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/structs/user_app.go b/modules/structs/user_app.go index 76add1c635..eb894a8a99 100644 --- a/modules/structs/user_app.go +++ b/modules/structs/user_app.go @@ -9,7 +9,6 @@ import ( ) // AccessToken represents an API access token. -// swagger:response AccessToken type AccessToken struct { // The unique identifier of the access token ID int64 `json:"id"` @@ -53,7 +52,6 @@ type CreateOAuth2ApplicationOptions struct { } // OAuth2Application represents an OAuth2 application. -// swagger:response OAuth2Application type OAuth2Application struct { // The unique identifier of the OAuth2 application ID int64 `json:"id"`