lib/rack/json_schema/response_validation.rb
def call
          if !has_redirection_or_error_status? && has_link_for_current_action? && has_link_of_media_type_json?
            case
            when has_body? && !has_json_content_type?
              raise InvalidResponseContentType
            when !valid?
              raise InvalidResponseType, validator.errors
            end
          end
        end
# Raises an error if any error detected, skipping validation for non-defined link
# @raise [Rack::JsonSchema::ResponseValidation::InvalidResponse]
Raises an error if any error detected, skipping validation for non-defined link
Raises an error if any error detected skipping validation for non - defined link
def call
          if !has_redirection_or_error_status? && has_link_for_current_action? && has_link_of_media_type_json?
            case
            when has_body? && !has_json_content_type?
              raise InvalidResponseContentType
            when !valid?
              raise InvalidResponseType, validator.errors
            end
          end
        end
def call if ! has_redirection_or_error_status? && has_link_for_current_action? && has_link_of_media_type_json? case when has_body? && ! has_json_content_type? raise InvalidResponseContentType when ! valid? raise InvalidResponseType , validator . errors end end end
Raises an error if any error detected, skipping validation for non-defined link
Raises an error if any error detected skipping validation for non - defined link
None