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

swagger:parameters split into new lines #1865

Open
xutch opened this issue Jan 22, 2019 · 0 comments
Open

swagger:parameters split into new lines #1865

xutch opened this issue Jan 22, 2019 · 0 comments
Labels
generate spec Related to spec generation from code scanner

Comments

@xutch
Copy link

xutch commented Jan 22, 2019

I want use go-swagger to generate spec from code.
There is a parameter used by many routes, So the annotation looks like the following:

// swagger:parameters opid1 opid2 opid3 opid4 opid5 opid6 opid7 opid8 0pid9 opid10 opid11 opid12
type TokenWrapper struct {
// token
// in: header
// Required: true
Token string json:"X-Auth-Token"
}

The line "// swagger:parameters opid1 opid2 opid3 opid4 opid5 opid6 opid7 opid8 0pid9 opid10 opid11 opid12 " is too long, how to split into new lines?

@fredbi fredbi added the generate spec Related to spec generation from code label Jan 22, 2019
@fredbi fredbi added the scanner label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generate spec Related to spec generation from code scanner
Projects
None yet
Development

No branches or pull requests

2 participants