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
By default, the body_params argument for incoming requests is deserialized to a map or is placed into a map with the top-level key of _json_body. However, when the arg_type is request (the user is explicitly selecting to receive the entire %Maverick.Request{} struct as the argument to the internal function), it should be possible to override this behavior and allow the body_params to be any valid json.
In this scenario, the body_params is not coerced to a map and thus not merged into the params map. It will be up to the user to handle the type received in this instance.
The default behavior should still be to coerce the body a map and merge it into the params value.
The text was updated successfully, but these errors were encountered:
By default, the body_params argument for incoming requests is deserialized to a map or is placed into a map with the top-level key of
_json_body
. However, when the arg_type isrequest
(the user is explicitly selecting to receive the entire%Maverick.Request{}
struct as the argument to the internal function), it should be possible to override this behavior and allow the body_params to be any valid json.In this scenario, the body_params is not coerced to a map and thus not merged into the
params
map. It will be up to the user to handle the type received in this instance.The default behavior should still be to coerce the body a map and merge it into the
params
value.The text was updated successfully, but these errors were encountered: