Skip to content
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

unknown field 'LeftDelim' in struct literal of type... #267

Open
lynn447742 opened this issue May 25, 2023 · 2 comments
Open

unknown field 'LeftDelim' in struct literal of type... #267

lynn447742 opened this issue May 25, 2023 · 2 comments

Comments

@lynn447742
Copy link

After upgrading swag to the latest version, run swag init, and report the following error after running the program:

docs/docs.go:3338:2: unknown field 'LeftDelim' in struct literal of type "github.com/swaggo/swag".Spec
docs/docs.go:3339:2: unknown field 'RightDelim' in struct literal of type "github.com/swaggo/swag".Spec

The relevant codes for docs/docs.go:3338-3339 are as follows:
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
...
LeftDelim: "{{",
RightDelim: "}}",
}

@qsoyq
Copy link

qsoyq commented May 25, 2023

swaggo/swag#1568

@JXDS18FUJT
Copy link

me too,I need to delete it every time before generated docs/docs.go,i hope to find why generated two field

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

3 participants