-
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
formData generator is broken #1554
Comments
I'll look into this. |
tnx, am waitin' |
still broken with flag v3.1 true |
There was no new release after the merge. |
I created a new v2.0.0-rc2 tag |
if docs.go already exists getting error:api/doc/docs.go:1:1: expected 'package', found 'EOF' and docs.go file is empty |
for production already using stable version, now just testing v2, if find some problems, making issue |
Okay, i'll have a look in the error when the docs.go already exists |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
See all fields defenition
Example
From:
type Request struct {
GrantType string
json:"grant_type" validate:"required"
ClientID string
json:"client_id" validate:"required"
ClientSecret string
json:"client_secret" validate:"required"
RedirectURI string
json:"redirect_uri"
Code string
json:"code"
CodeVerifier string
json:"code_verifier"
Scope string
json:"scope"
Username string
json:"username"
Password string
json:"password"
RefreshToken string
json:"refresh_token"
}
Result:
endpoint:
post:
description: Token oauth2
parameters:
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
- in: formData
name: scope
schema:
type: string
Your swag version
2.0.0
Your go version
1.20.3
The text was updated successfully, but these errors were encountered: