Exception: Apipie::ResponseDoesNotMatchSwaggerSchema

Inherits:
Error
  • Object
show all
Defined in:
lib/apipie/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller_name, method_name, response_code, error_messages, schema, returned_object) ⇒ ResponseDoesNotMatchSwaggerSchema

Returns a new instance of ResponseDoesNotMatchSwaggerSchema.



76
77
78
# File 'lib/apipie/errors.rb', line 76

def initialize(controller_name, method_name, response_code, error_messages, schema, returned_object)
  super("Response does not match swagger schema (#{controller_name}##{method_name} #{response_code}): #{error_messages}\nSchema: #{JSON(schema)}\nReturned object: #{returned_object}")
end