mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Fix lint-swagger warning (#29787)
Caused by: #23106 Fix: https://github.com/go-gitea/gitea/actions/runs/8274650046/job/22640335697 1. Delete `UserBadgeList` in `options.go`, because it wasn't used. (The struct defined in `options.go` is the struct used to parse the request body) 2. Move `BadgeList` struct under `routers/api/v1/swagger` folder which response should be defined in.
This commit is contained in:
@ -193,7 +193,4 @@ type swaggerParameterBodies struct {
|
||||
|
||||
// in:body
|
||||
UserBadgeOption api.UserBadgeOption
|
||||
|
||||
// in:body
|
||||
UserBadgeList api.BadgeList
|
||||
}
|
||||
|
@ -48,3 +48,10 @@ type swaggerResponseUserSettings struct {
|
||||
// in:body
|
||||
Body []api.UserSettings `json:"body"`
|
||||
}
|
||||
|
||||
// BadgeList
|
||||
// swagger:response BadgeList
|
||||
type swaggerResponseBadgeList struct {
|
||||
// in:body
|
||||
Body []api.Badge `json:"body"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user