We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 Hello. go.code:
type ResponseCreatePayGroup struct { GroupID int64 `json:"groupId,omitempty" format:"int64"` Pays []ResponseCreatePay `json:"pays,omitempty"` *cheque.Cheque `json:"cheque,omitempty"` } // @name ResponseCreatePayGroup
If i make swagger at 2.0 version(swag init -g app.go --pd), name of fields use @name:
@name
ResponseCreatePayGroup: properties: cheque: $ref: '#/definitions/Cheque' groupId: format: int64 type: integer pays: items: $ref: '#/definitions/ResponseCreatePay' type: array type: object
If i make swagger with flat --3.1(swag init -g app.go --pd --v3.1):
createpays.ResponseCreatePayGroup: properties: cheque: $ref: '#/components/schemas/cheque.Cheque' groupId: format: int64 type: integer pays: items: $ref: '#/components/schemas/createpays.ResponseCreatePay' type: array uniqueItems: false type: object
Can i use @name in v3.1? What i need make for use @name in v3.1?
To Reproduce Steps to reproduce the behavior:
Expected behavior Name of definition(component) and fields without package name.
Your swag version v2.0.0-rc4
Your go version 1.22.0
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
i have a same issue 😢
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Hello.
go.code:
If i make swagger at 2.0 version(swag init -g app.go --pd), name of fields use
@name
:If i make swagger with flat --3.1(swag init -g app.go --pd --v3.1):
Can i use @name in v3.1? What i need make for use @name in v3.1?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Name of definition(component) and fields without package name.
Your swag version
v2.0.0-rc4
Your go version
1.22.0
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: