File tree 3 files changed +13
-5
lines changed
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -274,5 +274,5 @@ func (list ReactionList) APIFormat() api.CommentReactionList {
274
274
Count : counts [k ],
275
275
})
276
276
}
277
- return result
277
+ return api. CommentReactionList { CommentReactions : result }
278
278
}
Original file line number Diff line number Diff line change @@ -46,4 +46,6 @@ type CommentReaction struct {
46
46
}
47
47
48
48
// CommentReactionList is a list of comment reactions
49
- type CommentReactionList []* CommentReaction
49
+ type CommentReactionList struct {
50
+ CommentReactions []* CommentReaction `json:"comment_reactions" binding:"Required"`
51
+ }
Original file line number Diff line number Diff line change 7807
7807
},
7808
7808
"CommentReactionList": {
7809
7809
"description": "CommentReactionList is a list of comment reactions",
7810
- "type": "array",
7811
- "items": {
7812
- "$ref": "#/definitions/CommentReaction"
7810
+ "type": "object",
7811
+ "properties": {
7812
+ "comment_reactions": {
7813
+ "type": "array",
7814
+ "items": {
7815
+ "$ref": "#/definitions/CommentReaction"
7816
+ },
7817
+ "x-go-name": "CommentReactions"
7818
+ }
7813
7819
},
7814
7820
"x-go-package": "code.gitea.io/gitea/modules/structs"
7815
7821
},
You can’t perform that action at this time.
0 commit comments