-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Bind form-data request with nested structures #551
Comments
Please is there any solution for this? I would like to use nested structs too. Thanks. |
I found a trick, using reflection, you can wrap the Bind function. I will provide a sample later. |
Could you please show any sample code? |
any progress? |
I think that assign multiple names for different nested struct is tedious. For example:
The json bind for nested struct is more easily than form way. Is possible work with form as the json way and send only like |
Hi,
I have an struct
StructA
which contains another structStructB
as an attribute, like this:In my handler I'm
Bind
ing the request content to anStructA
object:My form contains the field
fieldA
as well asfieldB
, butNestedStruct
stays<nil>
after theBind
call.Is manual binding the only way to achieve this at the time? Or am I missing something?
Thanks
The text was updated successfully, but these errors were encountered: