lib/oas_rails/spec/request_body.rb



module OasRails
  module Spec
    class RequestBody
      include Specable
      include Hashable

      attr_accessor :description, :content, :required

      def initialize(specification)
        @specification = specification
        @description = ""
        @content = {} # a hash with media type objects
        @required = false
      end

      def oas_fields
        [:description, :content, :required]
      end
    end
  end
end