Exception: Rack::Spec::ResponseValidation::InvalidResponseType
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(errors) ⇒ InvalidResponseType
constructor
A new instance of InvalidResponseType.
- #status ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(errors) ⇒ InvalidResponseType
Returns a new instance of InvalidResponseType.
92 93 94 |
# File 'lib/rack/spec/response_validation.rb', line 92 def initialize(errors) super JsonSchema::SchemaError.aggregate(errors).join(" ") end |
Instance Method Details
#id ⇒ Object
96 97 98 |
# File 'lib/rack/spec/response_validation.rb', line 96 def id "invalid_response_type" end |
#status ⇒ Object
100 101 102 |
# File 'lib/rack/spec/response_validation.rb', line 100 def status 500 end |