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.
Validates the field of a JSON object.
Returns validation errors when the property is not valid according
to this validator.
document is the enclosing JSON object being validated.
Validates the property of a class.
Returns validation errors when the property is not valid according
to this validator.
entity is the enclosing object being validated.