Sha256: 7fa99b4093952459f7fa5534538ea9b676179f3e9d07f768db17108c7e72e658

Contents?: true

Size: 1.12 KB

Versions: 11

Compression:

Stored size: 1.12 KB

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#componentsObject
    class Components < Node::Object
      # @return [Map<String, Schema>]
      def schemas
        self["schemas"]
      end

      # @return [Map<String, Response>]
      def responses
        self["responses"]
      end

      # @return [Map<String, Parameter>]
      def parameters
        self["parameters"]
      end

      # @return [Map<String, Example>]
      def examples
        self["examples"]
      end

      # @return [Map<String, RequestBody>]
      def request_bodies
        self["requestBodies"]
      end

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

      # @return [Map<String, SecurityScheme>]
      def security_schemes
        self["securitySchemes"]
      end

      # @return [Map<String, Link>]
      def links
        self["links"]
      end

      # @return [Map<String, Callback>]
      def callbacks
        self["callbacks"]
      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/components.rb
openapi3_parser-0.9.2 lib/openapi3_parser/node/components.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node/components.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node/components.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node/components.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node/components.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node/components.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node/components.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node/components.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node/components.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node/components.rb