Sha256: 38384059d0630bc8a4d9ba34c3e265612dcd91c72c0569da9ea6c5404b3ed40a

Contents?: true

Size: 994 Bytes

Versions: 11

Compression:

Stored size: 994 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node_factory/object"
require "openapi3_parser/node_factory/parameter_like"

module Openapi3Parser
  module NodeFactory
    class Header < NodeFactory::Object
      include ParameterLike

      allow_extensions

      field "description", input_type: String
      field "required", input_type: :boolean, default: false
      field "deprecated", input_type: :boolean, default: false
      field "allowEmptyValue", input_type: :boolean, default: false

      field "style", input_type: String, default: "simple"
      field "explode", input_type: :boolean, default: :default_explode
      field "allowReserved", input_type: :boolean, default: false
      field "schema", factory: :schema_factory
      field "example"
      field "examples", factory: :examples_factory

      field "content", factory: :content_factory

      private

      def build_object(data, context)
        Node::Header.new(data, context)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
openapi3_parser-0.9.2 lib/openapi3_parser/node_factory/header.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node_factory/header.rb
openapi3_parser-0.5.2 lib/openapi3_parser/node_factory/header.rb