Sha256: 092ba523d435f8830ce68bde9e4f4eb0dd9f1224c22a509e3fab94f7ef1b40f8

Contents?: true

Size: 560 Bytes

Versions: 4

Compression:

Stored size: 560 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#externalDocumentationObject
    class ExternalDocumentation < Node::Object
      # @return [String, nil]
      def description
        node_data["description"]
      end

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

      # @return [String]
      def url
        node_data["url"]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openapi3_parser-0.5.2 lib/openapi3_parser/node/external_documentation.rb
openapi3_parser-0.5.1 lib/openapi3_parser/node/external_documentation.rb
openapi3_parser-0.5.0 lib/openapi3_parser/node/external_documentation.rb
openapi3_parser-0.4.0 lib/openapi3_parser/node/external_documentation.rb