Skip to content

Supporting ~ character in @Router paths #2004

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

Open
subwiz opened this issue Apr 16, 2025 · 0 comments
Open

Supporting ~ character in @Router paths #2004

subwiz opened this issue Apr 16, 2025 · 0 comments

Comments

@subwiz
Copy link

subwiz commented Apr 16, 2025

Describe the bug
When I have a @Router /{id}/~summary, I'm getting the error on swag init:

can not parse router comment "/{id}/~summary [patch]"

Expected behavior
I would expect this to be supported path character.

Your swag version
v1.16.4

Your go version
1.24

Desktop (please complete the following information):

  • Mac M4 15.3.2
subwiz added a commit to subwiz/swag that referenced this issue Apr 16, 2025
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