fix(api): align Swagger schemas for UserSettings and TopicListResponse (#38590)

Corrects the Swagger/OpenAPI schemas for `/user/settings` and
`/topics/search` to match the actual JSON objects returned by the API.

Signed-off-by: Sudhanshu Singh <sudhanshuwriterblc@gmail.com>
This commit is contained in:
Shudhanshu Singh
2026-07-23 14:49:52 +08:00
committed by GitHub
parent 20221e1faa
commit 560edd45e9
6 changed files with 41 additions and 20 deletions
+2 -2
View File
@@ -300,7 +300,7 @@ func TopicSearch(ctx *context.APIContext) {
}
ctx.SetTotalCountHeader(total)
ctx.JSON(http.StatusOK, map[string]any{
"topics": topicResponses,
ctx.JSON(http.StatusOK, api.TopicListResponse{
Topics: topicResponses,
})
}