Gizra/entity_validator — pull request #12 by snirs90 (2014-07-08 07:23:24+00:00)
Title: Fix of always required field

All the fields was required event if it shouldn't be.
for example, an Email field that not required and the value if empty, the error receive is:
"errors": {
"email": [
"The value is invalid for the field email."
],
}

So I just added that it should verify if the value is valid only if there is a value.