Sha256: c589ab39ff9e3e189b47cce9d66bf5b3d4ec3dde6981b17e6f0ba95807cf911d

Contents?: true

Size: 642 Bytes

Versions: 4

Compression:

Stored size: 642 Bytes

Contents

require 'swagger/swagger_object'

module Swagger
  module V2
    # Class representing a Swagger "Header Object".
    # @see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#headerObject Header Object
    class Header < SwaggerObject
      # @!group Fixed Fields
      field :description, String
      field :required, Swagger::Boolean
      alias_method :required?, :required
      field :type, String
      field :format, String
      field :items, Hash # TODO: Items Object
      field :collectionFormat, String
      field :default, Object
      # @!endgroup

      include DeterministicJSONSchema
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
swagger-parser-0.2.6 lib/swagger/v2/header.rb
swagger-parser-0.2.5 lib/swagger/v2/header.rb
swagger-core-0.2.3 lib/swagger/v2/header.rb
swagger-core-0.2.2 lib/swagger/v2/header.rb