Request payload schema validation

Utility function for request payload schema validation