Sha256: 337f5cb4864aad0a13a91d2b0615cb9d61cb51ec67432e0c8ef0e439c932f972

Contents?: true

Size: 714 Bytes

Versions: 11

Compression:

Stored size: 714 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#responseObject
    class Response < Node::Object
      # @return [String]
      def description
        self["description"]
      end

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

      # @return [Map<String, Header>]
      def headers
        self["headers"]
      end

      # @return [Map<String, MediaType>]
      def content
        self["content"]
      end

      # @return [Map<String, Link>]
      def links
        self["links"]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

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