Module: Swagger::V1::DefaultResponses::Unprocessable

Defined in:
app/docs/swagger/v1/default_responses/unprocessable.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



6
7
8
9
10
11
12
13
# File 'app/docs/swagger/v1/default_responses/unprocessable.rb', line 6

def self.extended(base)
  base.response 422 do
    key :description, "Переданные параметры не валидны"
    schema do
      key :'$ref', :'Swagger::V1::::Models::Apress::Api::UnprocessableError'
    end
  end
end