v0.2.0
ido50
tagged this
19 Aug 14:57
When a request includes a body, and `UnmarshalRequest` is called with `body = true`, then the function only unmarshals the JSON body into the target struct. However, if the target struct also includes fields for query/path/header parameters (i.e. fields with a "lambda" struct tag), then they were not parsed. To fix, the request body will first be unmarshaled into the target struct, and then the rest of the parameters (if any) will be processed as well.