Skip to content

Commit

Permalink
updated test by parsing struct commit (swaggo#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
KuboOrk committed Jan 20, 2022
1 parent 1c4100c commit acf14cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions parser_test.go
Expand Up @@ -1800,6 +1800,7 @@ func TestParseStructComment(t *testing.T) {
},
"definitions": {
"web.APIError": {
"description": "API error with information about it",
"type": "object",
"properties": {
"createdAt": {
Expand Down
3 changes: 3 additions & 0 deletions testdata/struct_comment/web/handler.go
Expand Up @@ -15,6 +15,9 @@ type Post struct {
} `json:"data"`
}

// APIError
// @Description API error
// @Description with information about it
type APIError struct {
// Error an Api error
Error string // Error this is Line comment
Expand Down

0 comments on commit acf14cc

Please sign in to comment.