Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad operation when there is a newline character between annotations #1839

Open
mariusz-4chain opened this issue Jul 4, 2024 · 0 comments
Open

Comments

@mariusz-4chain
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant