swag icon indicating copy to clipboard operation
swag copied to clipboard

Bad operation when there is a newline character between annotations

Open mariusz-4chain opened this issue 7 months ago • 0 comments

Describe the bug Bad operation when there is a newline character between annotations

To Reproduce Steps to reproduce the behavior:

  1. Add a couple of annotations describing the endpoint
  2. 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 image

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

mariusz-4chain avatar Jul 04 '24 11:07 mariusz-4chain