Added contextSchema to validate API calls, if different than the schema to validate.