Skip to content

Supporting ~ character in @Router paths #2004

Open

Description

@subwiz

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

Activity

  1. added a commit that references this issue on Apr 16, 2025
  2. added a commit that references this issue on Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址