-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add put_path_params_style/2 step #373
Add put_path_params_style/2 step #373
Conversation
lib/req/steps.ex
Outdated
@@ -71,6 +72,7 @@ defmodule Req.Steps do | |||
put_base_url: &Req.Steps.put_base_url/1, | |||
auth: &Req.Steps.auth/1, | |||
put_params: &Req.Steps.put_params/1, | |||
put_path_params_style: &Req.Steps.put_path_params_style/1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you merge this into the put_path_params step instead? It's going to be easier to document too, just another option for that step. Finally, I don't think we need to store it in req.private and instead look at req.options when applying params. I prefer to keep as least things as possible in req.private since it's user accessible. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suresies, incoming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wojtekmach done!
Thank you! |
First attempt. Not sure I’m doing it right with the option + step, but it seems to work 🙃