Sha256: bad33bf9f5e3c4729b552e887a192a1637acef5b9fd1bc2b0d9cdd601025af5e

Contents?: true

Size: 1010 Bytes

Versions: 1

Compression:

Stored size: 1010 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node/object"

module Openapi3Parser
  module Node
    # OpenAPI Root Object
    # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#oasObject
    class Openapi < Node::Object
      # @return [String]
      def openapi
        node_data["openapi"]
      end

      # @return [Info]
      def info
        node_data["info"]
      end

      # @return [Node::Array<Server>]
      def servers
        node_data["servers"]
      end

      # @return [Paths]
      def paths
        node_data["paths"]
      end

      # @return [Components]
      def components
        node_data["components"]
      end

      # @return [Node::Array<SecurityRequirement>]
      def security
        node_data["security"]
      end

      # @return [Node::Array<Tag>]
      def tags
        node_data["tags"]
      end

      # @return [ExternalDocumentation]
      def external_docs
        node_data["externalDocs"]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openapi3_parser-0.5.2 lib/openapi3_parser/node/openapi.rb