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
+5
View File
@@ -32,3 +32,8 @@ type RepoTopicOptions struct {
// list of topic names
Topics []string `json:"topics"`
}
// TopicListResponse returns a list of TopicResponse
type TopicListResponse struct {
Topics []*TopicResponse `json:"topics"`
}