Implement generic response validation

Given a generic response object and a swagger schema, validate the
response against the schema.