Sha256: 01b680d56dfb159d876f60480700a34a3c0943830122bae92fe4e0eb4e6466b5

Contents?: true

Size: 705 Bytes

Versions: 10

Compression:

Stored size: 705 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#exampleObject
    class Example < Node::Object
      # @return [String, nil]
      def summary
        self["summary"]
      end

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

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

      # @return [Object]
      def value
        self["value"]
      end

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