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

Empty Lists can't be invalid? #15

Open
BobbieBarker opened this issue Apr 16, 2020 · 1 comment
Open

Empty Lists can't be invalid? #15

BobbieBarker opened this issue Apr 16, 2020 · 1 comment

Comments

@BobbieBarker
Copy link

Is it possible to invalidate an empty list with this library? If so how?

@bobfp
Copy link
Owner

bobfp commented Apr 16, 2020

Hey, sure can. You can pass in a validator. This can just be a simple function that checks length and returns a bool, or you can check the built in validators for examples on how to provide validation messages.

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

2 participants