Sha256: 3ab6f1f8712f10d0f821258479597ba7a8e4316061d58c7fd0925d09e05b31bb

Contents?: true

Size: 897 Bytes

Versions: 10

Compression:

Stored size: 897 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#linkObject
    class Link < Node::Object
      # @return [String, nil]
      def operation_ref
        self["operationRef"]
      end

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

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

      # @return [Any]
      def request_body
        self["requestBody"]
      end

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

      # @return [String, nil]
      def description_html
        render_markdown(description)
      end

      # @return [Server, nil]
      def server
        self["server"]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

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