-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
swag init with --instanceName
generates invalid variable
#1133
Comments
Syuparn
added a commit
to Syuparn/swag
that referenced
this issue
Feb 10, 2022
Syuparn
added a commit
to Syuparn/swag
that referenced
this issue
Feb 10, 2022
ubogdan
pushed a commit
that referenced
this issue
Feb 10, 2022
I believe this can be closed since it was released with v1.8.0. |
I tried |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
When
swag init
is executed with--instanceName
, it generates invalid variable and compile error is raisedTo Reproduce
Steps to reproduce the behavior:
swag init --instanceName foo
in sample projectexample/basic/
Expected behavior
swag generates variable
SwaggerInfo_foo
.Screenshots
If applicable, add screenshots to help explain your problem.
Complie error is raised because SwaggerInfo variable is split into 2 tokens as below
Your swag version
e.g. v1.7.9-p1
Your go version
e.g. 1.17.6
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: