Skip to content

Commit

Permalink
fixed swag issue when generating getDSL doc
Browse files Browse the repository at this point in the history
  • Loading branch information
edoriggio committed Aug 22, 2024
1 parent 83ee7f7 commit 2e47180
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const docTemplate = `{
"type": "integer",
"default": 10,
"description": "size of the page",
"name": "pageSize",
"name": "size",
"in": "query"
},
{
Expand Down
2 changes: 1 addition & 1 deletion app/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"type": "integer",
"default": 10,
"description": "size of the page",
"name": "pageSize",
"name": "size",
"in": "query"
},
{
Expand Down
2 changes: 1 addition & 1 deletion app/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ paths:
in: query
maximum: 100
minimum: 1
name: pageSize
name: size
type: integer
- default: 100
description: knn's k
Expand Down
8 changes: 4 additions & 4 deletions app/internal/controller/dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
// @Description Retrieve the filtering DSL specifications
// @Tags DSL
// @Produce json
// @Param page parameter string false "parameter name"
// @Success 200 {object} models.TypesMap
// @Failure 400 {object} models.HTTPError
// @Failure 500 {object} models.HTTPError
// @Param page query string false "parameter name"
// @Success 200 {object} []string
// @Failure 400 {object} models.HTTPError
// @Failure 500 {object} models.HTTPError
// @Router /search [post]
func GetDSL(ctx *gin.Context) {
var parameter = ctx.Query("parameter")
Expand Down

0 comments on commit 2e47180

Please # to comment.