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
Now we override path parameter and query parameter so we can't get same name parameter like this curl -X POST --header 'Content-Type: application/json' -d '{"id": 82}' "localhost:3000/posts/21?id=42"
So I want to divide path, query, request body parameter.
These parameter store env by individual key like this.
env['committee.params']['id'], 84 # use path parameter for merged params (like rails)
env['committee.path_hash']['id'], 21
env['committee.query_hash']['id'], 42
env['committee.request_body_hash']['id'], 84
Plan
Now we override path parameter and query parameter so we can't get same name parameter like this
curl -X POST --header 'Content-Type: application/json' -d '{"id": 82}' "localhost:3000/posts/21?id=42"
So I want to divide path, query, request body parameter.
These parameter store env by individual key like this.
And we can get merged parameter by specific key.
Because backward compatibility and when we want to use commitee in rails, we need set
action_dispatch.request.request_parameters
https://github.com/interagent/committee#use-ruby-on-rails-with-coerce-option
Tasks
Other
related issue #106
add failed tests https://github.com/interagent/committee/tree/feature/parameter_merge
The text was updated successfully, but these errors were encountered: