Skip to content
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

Make it possible to provide default values for query string and header params #658

Closed
Tri125 opened this issue Jul 29, 2016 · 5 comments
Closed

Comments

@Tri125
Copy link

Tri125 commented Jul 29, 2016

At the moment we can't specify a default value for params inside a resource or action.

@bits01
Copy link
Contributor

bits01 commented Jul 29, 2016

I assume URL params implies both path and query params.

@Tri125
Copy link
Author

Tri125 commented Jul 29, 2016

I guess I should have called it Action/Resource Params. I'll edit to make it clearer.

@raphael
Copy link
Member

raphael commented Jul 29, 2016

@bits01 setting default values on path parameters doesn't make a lot of sense because the mux enforces they have values. It might be good to fail actually if defaults are provided for those with a nice error message explaining this. So we're talking about query string parameters and header parameters.

@bits01
Copy link
Contributor

bits01 commented Jul 29, 2016

Ooops, didn't give it a lot of thought at 7am :-)

@raphael raphael changed the title Provide default value with url params Make it possible to provide default values for query string and header params Jul 29, 2016
@stale
Copy link

stale bot commented Mar 15, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 15, 2018
@stale stale bot closed this as completed Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants