Generic validator for a REST webservice requests