We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The following struct fails to generate the docs through swag init:
swag init
type Foo struct { Attributes map[string]string `example:"bucket_arn:arn:aws:::foobar-bucket"` }
The following error is returned:
ParseComment error in file /tmp/foobar/main.go :example value bucket_arn:arn:aws:::foobar-bucket should format: key:value
Escaping the value with double backlashes (\\) does not work.
\\
To Reproduce Steps to reproduce the behavior:
main.go
package main type Resource struct { Attributes map[string]string `example:"bucket_arn:arn:aws:::foobar-bucket"` } // @Summary Foo // @Success 200 {object} Resource // @Router /foo [get] func main() { }
swag init ./main.go
Expected behavior Users should be able to create examples with double colons, maybe escaping them with double backlashes to avoid key:value conflicts.
Your swag version 1.8.8
Your go version e.g. 1.19.3
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The following struct fails to generate the docs through
swag init
:The following error is returned:
Escaping the value with double backlashes (
\\
) does not work.To Reproduce
Steps to reproduce the behavior:
main.go
file:swag init ./main.go
Expected behavior
Users should be able to create examples with double colons, maybe escaping them with double backlashes to avoid key:value conflicts.
Your swag version
1.8.8
Your go version
e.g. 1.19.3
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: