Class: Openapi3Parser::Node::RequestBody

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi3_parser/node/request_body.rb

Overview

Instance Attribute Summary

Attributes inherited from Object

#node_context, #node_data

Instance Method Summary collapse

Methods inherited from Object

#==, #[], #each, #extension, #initialize, #inspect, #node_at, #render_markdown, #values

Constructor Details

This class inherits a constructor from Openapi3Parser::Node::Object

Instance Method Details

#contentMap<String, MediaType>

Returns:


20
21
22
# File 'lib/openapi3_parser/node/request_body.rb', line 20

def content
  self["content"]
end

#descriptionString?

Returns:

  • (String, nil)

10
11
12
# File 'lib/openapi3_parser/node/request_body.rb', line 10

def description
  self["description"]
end

#description_htmlString?

Returns:

  • (String, nil)

15
16
17
# File 'lib/openapi3_parser/node/request_body.rb', line 15

def description_html
  render_markdown(description)
end

#required?Boolean

Returns:

  • (Boolean)

25
26
27
# File 'lib/openapi3_parser/node/request_body.rb', line 25

def required?
  self["required"]
end