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

Parenthesis not registering in @Router #1799

Open
alifemove opened this issue Apr 24, 2024 · 0 comments
Open

Parenthesis not registering in @Router #1799

alifemove opened this issue Apr 24, 2024 · 0 comments

Comments

@alifemove
Copy link

Describe the bug
ParseComment error when using a parenthesis in a valid location in the @Router

To Reproduce
Steps to reproduce the behavior:

// @Router       /v2/odata/Resource({id}) [get]

Expected behavior
No error, swagger page generated

Your swag version
1.16.2

Your go version
1.21.6

Desktop (please complete the following information):

  • OS: macOS

Additional context

2024/04/24 08:39:25 ParseComment error in file /Users/local/Documents/goTest/src/odata/single_resource.go :can not parse router comment "/odata/Resource({id}) [get]"
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