Sha256: 689a36492fe67c6cf2360a03c873ebad3bc0859d953a70637444111a80d8c4a3

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true
module Swagger
  module V1
    module Models
      module Apress
        module Api
          class SimpleError < ::Apress::Documentation::Swagger::Schema
            swagger_schema name.to_sym do
              keys = [
                :status,
                :message,
                :backtrace
              ]

              key :required, keys

              keys.each do |k|
                property k do
                  key :type, :string
                end
              end
            end
          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/simple_error.rb