Sha256: 0d12c3ca1cb2f6d22087200521f8a3f1f5ce50f471fd16a73595987b7f616f8e

Contents?: true

Size: 693 Bytes

Versions: 11

Compression:

Stored size: 693 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node/object"

module Openapi3Parser
  module Node
    # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#encodingObject
    class Encoding < Node::Object
      # @return [String, nil]
      def content_type
        self["contentType"]
      end

      # @return [Map<String, Header>]
      def headers
        self["headers"]
      end

      # @return [String, nil]
      def style
        self["style"]
      end

      # @return [Boolean]
      def explode?
        self["explode"]
      end

      # @return [Boolean]
      def allow_reserved?
        self["allowReserved"]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

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