Skip to content

Adding value_from_request and value_as_* methods #1434

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PaulWay
Copy link
Contributor

@PaulWay PaulWay commented Jul 4, 2025

This is a bit of an experiment but I'd like to see what you think.

I wrote similar 'validate_param_part' and 'value_of_param' functions in a related project, and I finally realised that it would be easier if this was simply a method of the parameter itself.

I also wanted to provide strongly typed methods to aid code editing.

I haven't written the tests yet but let me know if you think this is a good approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant