Exception: Rack::JsonSchema::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.
124 125 126 |
# File 'lib/rack/json_schema/response_validation.rb', line 124 def initialize(errors) super ::JsonSchema::SchemaError.aggregate(errors).join(" ") end |
Instance Method Details
#id ⇒ Object
128 129 130 |
# File 'lib/rack/json_schema/response_validation.rb', line 128 def id "invalid_response_type" end |
#status ⇒ Object
132 133 134 |
# File 'lib/rack/json_schema/response_validation.rb', line 132 def status 500 end |