# frozen_string_literal: true require "openapi3_parser/node/object" module Openapi3Parser module Nodes # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#requestBodyObject class RequestBody include Node::Object # @return [String, nil] def description node_data["description"] end # @return [Map] a map of String: {MediaType}[./MediaType.html] objects def content node_data["content"] end # @return [Boolean] def required? node_data["required"] end end end end