class OasRails::Builders::RequestBodyBuilder

def from_oas_route(oas_route)

def from_oas_route(oas_route)
  tag_request_body = oas_route.docstring.tags(:request_body).first
  if tag_request_body.nil? && OasRails.config.autodiscover_request_body
    detect_request_body(oas_route) if %w[create update].include? oas_route.method
  elsif !tag_request_body.nil?
    from_tags(tag: tag_request_body, examples_tags: oas_route.docstring.tags(:request_body_example))
  end
  self
end