Skip to content

Parse regexp from path parameters #129

@vearutop

Description

@vearutop

Describe the bug
Currently, when OpenAPI schema is generated, any regular expressions are filtered out from URL pattern to make URL pattern compatible with OpenAPI.

To Reproduce

	r.Get("/{token:^\\.}", usecase.ShortURL(deps))

Expected behavior
Such endpoint should produce token parameter with "pattern":"^\.".

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