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

Add clean.set #2

Open
IlyaSemenov opened this issue Oct 19, 2017 · 1 comment
Open

Add clean.set #2

IlyaSemenov opened this issue Oct 19, 2017 · 1 comment

Comments

@IlyaSemenov
Copy link
Owner

A possible scenario is to validate data coming from the list of checkboxes:

{"flag1": true, "flag2": false, "flag3": true}

into a smallest possible set:

{"flag1": true, "flag3": true}

The syntax might look like simply like clean.set() where all schema parameters will be passed directly to clean.boolean().

@IlyaSemenov
Copy link
Owner Author

or, it could be clean.booleanSet

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

No branches or pull requests

1 participant