Class: SwaggerApi::Operations::Show

Inherits:
Base
  • Object
show all
Defined in:
lib/swagger_api/operations/show.rb

Instance Attribute Summary

Attributes inherited from Base

#action, #controller

Instance Method Summary collapse

Methods inherited from Base

#create, #model, #model_name, #parameters, #readable_action, #request_body, #responses, #success_response

Instance Method Details

#error_responsesObject



6
7
8
9
10
# File 'lib/swagger_api/operations/show.rb', line 6

def error_responses
  super.reject do |error_response|
    %w[422].include?(error_response.keys.first)
  end
end