We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
for example I have a struct as input parameter
type Account struct { AccountType int `json:"account_type"` }
Then I start swagger by using https://github.com/swaggo/gin-swagger. The paramters example value shows as
{ "accountType": "string" }
I expected the field name is used json tag like
{ "account_type": "string" }
Is there anyway to config this? Thanks in advance.
The text was updated successfully, but these errors were encountered:
You could use option -p snakecase
--propertyStrategy value, -p value Property Naming Strategy like snakecase,camelcase,pascalcase (default: "camelcase")
Sorry, something went wrong.
No branches or pull requests
for example I have a struct as input parameter
Then I start swagger by using https://github.com/swaggo/gin-swagger.
The paramters example value shows as
I expected the field name is used json tag like
Is there anyway to config this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: