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.
129 130 131 |
# File 'lib/rack/json_schema/response_validation.rb', line 129 def initialize(errors) super ::JsonSchema::SchemaError.aggregate(errors).join(" ") end |
Instance Method Details
#id ⇒ Object
133 134 135 |
# File 'lib/rack/json_schema/response_validation.rb', line 133 def id "invalid_response_type" end |
#status ⇒ Object
137 138 139 |
# File 'lib/rack/json_schema/response_validation.rb', line 137 def status 500 end |