diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go index fb6d185ee7..37e28664fb 100644 --- a/routers/api/v1/swagger/user.go +++ b/routers/api/v1/swagger/user.go @@ -46,5 +46,5 @@ type swaggerResponseUserHeatmapData struct { // swagger:response UserSettings type swaggerResponseUserSettings struct { // in:body - Body []api.UserSettings `json:"body"` + Body api.UserSettings `json:"body"` } diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 12d89d3049..678e6a1c6f 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -25014,10 +25014,7 @@ "UserSettings": { "description": "UserSettings", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/UserSettings" - } + "$ref": "#/definitions/UserSettings" } }, "WatchInfo": {