Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct @Produce comments in examples #1196

Merged
merged 1 commit into from May 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions example/celler/controller/examples.go
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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)
Expand Down