validate method
Validates a request parameter or the entiry body of a request. Returns validation errors when the property is not valid according to this validator. entity is the enclosing object being validated.
Implementation
FutureOr<List<ValidationError>> validate(String propertyName,
dynamic propertyValue) =>
validateProperty(null, propertyName, propertyValue);