Rack middleware to validate responses according to JSON schema