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

Docs required for dealing with null or blank values #20

Open
jamescookie opened this issue May 3, 2012 · 1 comment
Open

Docs required for dealing with null or blank values #20

jamescookie opened this issue May 3, 2012 · 1 comment
Assignees

Comments

@jamescookie
Copy link

I have been writing a custom constraint, but it was obvious that the validate method was not getting called when null or blank values were passed to it.
I had to resort to digging through the code to see if I could work out why this was. I found out that I could get the validate method to fire by having these two lines in my constraint:

def skipBlankValues = false
def skipNullValues = false

If this could be mentioned in the docs it would have saved me a lot of time!

@ghost ghost assigned geofflane May 3, 2012
@geofflane
Copy link
Owner

Seems like a good idea. Will do.

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

2 participants