From d18c7152b6baedd3fe5fa0ccf7b6b71b0900d6e6 Mon Sep 17 00:00:00 2001 From: Alvaro Frias Date: Tue, 3 May 2022 02:48:56 -0300 Subject: [PATCH] chore: update @Produce comments (#1196) --- example/celler/controller/examples.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/example/celler/controller/examples.go b/example/celler/controller/examples.go index 06f95370a..8118d7f0d 100644 --- a/example/celler/controller/examples.go +++ b/example/celler/controller/examples.go @@ -14,7 +14,7 @@ import ( // @Description do ping // @Tags example // @Accept json -// @Produce json +// @Produce plain // @Success 200 {string} string "pong" // @Failure 400 {string} string "ok" // @Failure 404 {string} string "ok" @@ -29,7 +29,7 @@ func (c *Controller) PingExample(ctx *gin.Context) { // @Description plus // @Tags example // @Accept json -// @Produce json +// @Produce plain // @Param val1 query int true "used for calc" // @Param val2 query int true "used for calc" // @Success 200 {integer} string "answer" @@ -57,7 +57,7 @@ func (c *Controller) CalcExample(ctx *gin.Context) { // @Description path params // @Tags example // @Accept json -// @Produce json +// @Produce plain // @Param group_id path int true "Group ID" // @Param account_id path int true "Account ID" // @Success 200 {string} string "answer" @@ -84,7 +84,7 @@ func (c *Controller) PathParamsExample(ctx *gin.Context) { // @Description custome header // @Tags example // @Accept json -// @Produce json +// @Produce plain // @Param Authorization header string true "Authentication header" // @Success 200 {string} string "answer" // @Failure 400 {string} string "ok" @@ -117,7 +117,7 @@ func (c *Controller) SecuritiesExample(ctx *gin.Context) { // @Description attribute // @Tags example // @Accept json -// @Produce json +// @Produce plain // @Param enumstring query string false "string enums" Enums(A, B, C) // @Param enumint query int false "int enums" Enums(1, 2, 3) // @Param enumnumber query number false "int enums" Enums(1.1, 1.2, 1.3)