swag
swag copied to clipboard
Bad operation when there is a newline character between annotations
Describe the bug Bad operation when there is a newline character between annotations
To Reproduce Steps to reproduce the behavior:
- Add a couple of annotations describing the endpoint
- Enter a newline character between the annotations e.g.: // @Router /v1/transaction/record [post]
// @Security x-auth-xpub 4. Documentation won't be generated or @Tags information is ignored and endpoint is assigned to default tag
Expected behavior If the newline character is not allowed the plugin should throw an error and not silently ignore it.
Screenshots
Your swag version e.g. 1.16.3
Your go version go1.22.4 linux/amd64
Desktop (please complete the following information):
- OS: Linux Mint 21.3
- Browser: Chrome
- 126