-
Notifications
You must be signed in to change notification settings - Fork 995
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
Is it possible to bind uri
and json
for the same struct?
#94
Comments
I use result here: gin-gonic/gin#1824 (comment) |
|
@TaylorDurden thanks for help. However, if I recall correctly, this may not work. |
You can try it in my PR branch. Maybe the new version gin resolved this. |
@chengr4
FYI: |
@TaylorDurden But I usually want to validate it |
Then you should use another struct for this param...since it is from request body and use ShouldBindJSON to parse & validate it. |
Eg. for
updateAccount
API, How to binduri
andjson
for the same struct?the code above does not work.
Does anyone know? Thanks in advance
The text was updated successfully, but these errors were encountered: