Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pytimer committed Apr 28, 2022
1 parent 0817c69 commit 0f12bc4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions testdata/golist/api/api.go
Expand Up @@ -15,10 +15,7 @@ func PrintInt(i, j int) {
}

type Foo struct {
ID int `json:"id"`
Category struct {
Name string `json:"name"`
} `json:"category"`
ID int `json:"id"`
Name string `json:"name"`
PhotoUrls []string `json:"photoUrls"`
Status string `json:"status"`
Expand All @@ -31,7 +28,7 @@ type Foo struct {
// @Accept json
// @Produce json
// @Param some_id path int true "Some ID"
// @Param some_foo query Foo true "Foo"
// @Param some_foo formData Foo true "Foo"
// @Success 200 {string} string "ok"
// @Failure 400 {object} web.APIError "We need ID!!"
// @Failure 404 {object} web.APIError "Can not find ID"
Expand Down

0 comments on commit 0f12bc4

Please sign in to comment.