Skip to content

Commit 0e16249

Browse files
authored
fix(server): use interface{} for store handler swag annotations (#8859)
Signed-off-by: yamoyamoto <yamo7yamoto@gmail.com>
1 parent 49959f6 commit 0e16249

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/server/api/store/store.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
// @Description Get the value by given key
3434
// @Tags framework/projects
3535
// @Param storeKey path string true "storeKey"
36-
// @Success 200 {object} json.RawMessage
36+
// @Success 200 {object} interface{}
3737
// @Failure 400 {string} errcode.Error "Bad Request"
3838
// @Failure 500 {string} errcode.Error "Internal Error"
3939
// @Router /store/{storeKey} [get]
@@ -53,8 +53,8 @@ func GetStore(c *gin.Context) {
5353
// @Tags framework/projects
5454
// @Accept application/json
5555
// @Param storeKey path string true "storeKey"
56-
// @Param project body json.RawMessage false "json"
57-
// @Success 200 {object} json.RawMessage
56+
// @Param project body interface{} false "json"
57+
// @Success 200 {object} interface{}
5858
// @Failure 400 {string} errcode.Error "Bad Request"
5959
// @Failure 500 {string} errcode.Error "Internal Error"
6060
// @Router /store/{storeKey} [PUT]

0 commit comments

Comments
 (0)