Sha256: fccdd358d2dbacc613f6c41d239c2e6a363e5f18d6592e36f16b230fb13bfb3e

Contents?: true

Size: 649 Bytes

Versions: 4

Compression:

Stored size: 649 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#serverVariableObject
    class ServerVariable < Node::Object
      # @return [Node::Array<String>, nil]
      def enum
        node_data["enum"]
      end

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

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

      # @return [String, nil]
      def description_html
        render_markdown(description)
      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/server_variable.rb
openapi3_parser-0.5.1 lib/openapi3_parser/node/server_variable.rb
openapi3_parser-0.5.0 lib/openapi3_parser/node/server_variable.rb
openapi3_parser-0.4.0 lib/openapi3_parser/node/server_variable.rb