Module: ActivityNotification::Swagger::ErrorResponses::UnprocessableEntityError

Defined in:
lib/activity_notification/controllers/concerns/swagger/error_responses.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



43
44
45
46
47
48
49
50
51
52
# File 'lib/activity_notification/controllers/concerns/swagger/error_responses.rb', line 43

def self.extended(base)
  base.response 422 do
    key :description, "Unprocessable entity"
    content 'application/json' do
      schema do
        key :'$ref', :Error
      end
    end
  end
end