class OasRails::Builders::RequestBodyBuilder
def from_model_class(klass:, **kwargs)
def from_model_class(klass:, **kwargs) @request_body.description = kwargs[:description] || klass.to_s @request_body.content = ContentBuilder.new(@specification, :incoming).from_model_class(klass).with_examples_from_tags(kwargs[:examples_tags] || {}).build @request_body.required = kwargs[:required] self end