auraphp / Aura.Filter

Validate and sanitize arrays and objects.
MIT License
159 stars 33 forks source link

dev branch isNotBlank not working as expected #113

Closed designermonkey closed 8 years ago

designermonkey commented 8 years ago

My expectation is that isNotBlank would give me an error message if the passed in field was blank.

When I pass a field in that has a value, this validation returns an error.

designermonkey commented 8 years ago

current workaround is: is('strlenMin', 1)

pmjones commented 8 years ago

Insufficient testing on my part. Working through it now.

pmjones commented 8 years ago

All right, let's try this again. Newest push to 2.x branch has modified logic in ValidateSpec and SanitizeSpec, and better testing around isNotBlank(). Let me know if it works for you.

harikt commented 8 years ago

2.1 released. Hopefully things will be working fine. Can we close the issue ?

pmjones commented 8 years ago

@designermonkey Take a look and let us know. Sorry for the hassle.

designermonkey commented 8 years ago

Sorry, will do on Monday as it's a client project.

pmjones commented 8 years ago

At your convenience. :-)

pmjones commented 8 years ago

@designermonkey How's it looking?

designermonkey commented 8 years ago

I can confirm it is working :D Sorry for the delay.

pmjones commented 8 years ago

Not at all! Thanks for having reported it in the first place.