You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using c.Bind(&exampleStruct) properly binds the incoming data to the struct, but then subsequently calling c.Bind(&differentExampleStruct) silently fails to bind.
Reversing the order of the bindings produces the same issue with respect to the bindings (&differentExampleStruct is the populated, but &exampleStruct is left empty)
Checklist
[X ] Dependencies installed
[ X] No typos
Searched existing issues and docs
Expected behaviour
All structs are populated with respective data from the request
Actual behaviour
Only the first struct is populated with data from the request
Steps to reproduce
Have an incoming request with JSON data that is a superset of the fields of two (or more) structs
Attempt to bind the incoming echo.Context to each struct.
See that only the first struct gets properly bound
The text was updated successfully, but these errors were encountered:
Issue Description
Using
c.Bind(&exampleStruct)
properly binds the incoming data to the struct, but then subsequently callingc.Bind(&differentExampleStruct)
silently fails to bind.Reversing the order of the bindings produces the same issue with respect to the bindings (&differentExampleStruct is the populated, but &exampleStruct is left empty)
Checklist
Expected behaviour
All structs are populated with respective data from the request
Actual behaviour
Only the first struct is populated with data from the request
Steps to reproduce
Have an incoming request with JSON data that is a superset of the fields of two (or more) structs
Attempt to bind the incoming echo.Context to each struct.
See that only the first struct gets properly bound
The text was updated successfully, but these errors were encountered: