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.
103 104 105 |
# File 'lib/rack/json_schema/response_validation.rb', line 103 def initialize(errors) super ::JsonSchema::SchemaError.aggregate(errors).join(" ") end |
Instance Method Details
#id ⇒ Object
107 108 109 |
# File 'lib/rack/json_schema/response_validation.rb', line 107 def id "invalid_response_type" end |
#status ⇒ Object
111 112 113 |
# File 'lib/rack/json_schema/response_validation.rb', line 111 def status 500 end |