Sha256: 2a95ab9c457fc46488fb70d4ecd4d91285144a1e7c106ad00f33b1bbef463c5e

Contents?: true

Size: 926 Bytes

Versions: 1

Compression:

Stored size: 926 Bytes

Contents

# frozen_string_literal: true
module Swagger
  module V1
    module Models
      module Apress
        module Api
          class UnprocessableError < ::Apress::Documentation::Swagger::Schema
            module Schema
              extend ActiveSupport::Concern

              included do
                swagger_schema name.to_sym do
                  key :required, [:errors, :status]

                  property :status do
                    key :type, :string
                  end

                  property :errors do
                    key :type, :array
                    items do
                      key :type, :object
                      property :error do
                        key :type, :object
                      end
                    end
                  end
                end
              end
            end

            include Schema
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apress-api-1.24.2 app/docs/swagger/v1/models/apress/api/unprocessable_error.rb