Skip to content

Commit

Permalink
Corrected swagger documentation (swaggo#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
KuboOrk committed Jan 20, 2022
1 parent d7a5867 commit 26ce0c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -623,7 +623,10 @@ type Account struct {
}
```

generated swagger doc as follows:
[#708](https://github.com/swaggo/swag/issues/708) The parser handles only struct comments starting with `@Description` attribute.
But it writes all struct field comments as is.

So, generated swagger doc as follows:
```json
"Account": {
"type":"object",
Expand Down

0 comments on commit 26ce0c3

Please sign in to comment.