Class: Interpol::ResponseSchemaValidator::HandlerWithWarnings

Inherits:
Handler
  • Object
show all
Defined in:
lib/interpol/response_schema_validator.rb

Overview

Private: Subclasses Handler in order to convert validation errors to warnings instead.

Instance Attribute Summary

Attributes inherited from Handler

#body, #config, #env, #headers, #status

Instance Method Summary collapse

Methods inherited from Handler

#extracted_body, #initialize

Constructor Details

This class inherits a constructor from Interpol::ResponseSchemaValidator::Handler

Instance Method Details

#validate!Object



86
87
88
89
90
# File 'lib/interpol/response_schema_validator.rb', line 86

def validate!
  super
rescue ValidationError, NoEndpointDefinitionFoundError => e
  Kernel.warn e.message
end