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

Form validation across multiple fields #1

Open
duemunk opened this issue Sep 17, 2014 · 0 comments
Open

Form validation across multiple fields #1

duemunk opened this issue Sep 17, 2014 · 0 comments

Comments

@duemunk
Copy link

duemunk commented Sep 17, 2014

When you have multiple specifications in a view, it would be nice with a way to combine specifications that satisfies against separate inputs.

So instead of:

if spec1 == text1 && spec2 == text2 {}

Maybe something like:

let fullSpec = spec1.and.spec2
if fullSpec(text1, text2) {}
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