class OasRails::Builders::ResponsesBuilder

def add_autodiscovered_responses(oas_route)

def add_autodiscovered_responses(oas_route)
  return self if !OasRails.config.autodiscover_responses || oas_route.docstring.tags(:response).any?
  new_responses = Extractors::RenderResponseExtractor.extract_responses_from_source(@specification, source: oas_route.source_string)
  new_responses.each do |new_response|
    @responses.add_response(new_response) if @responses.responses[new_response.code].blank?
  end
  self
end