Exception: Apipie::ResponseDoesNotMatchSwaggerSchema
- Defined in:
- lib/apipie/errors.rb
Instance Method Summary collapse
-
#initialize(controller_name, method_name, response_code, error_messages, schema, returned_object) ⇒ ResponseDoesNotMatchSwaggerSchema
constructor
A new instance of ResponseDoesNotMatchSwaggerSchema.
Constructor Details
#initialize(controller_name, method_name, response_code, error_messages, schema, returned_object) ⇒ ResponseDoesNotMatchSwaggerSchema
Returns a new instance of ResponseDoesNotMatchSwaggerSchema.
62 63 64 |
# File 'lib/apipie/errors.rb', line 62 def initialize(controller_name, method_name, response_code, , schema, returned_object) super("Response does not match swagger schema (#{controller_name}##{method_name} #{response_code}): #{}\nSchema: #{JSON(schema)}\nReturned object: #{returned_object}") end |