Skip to content

Conversation

azrosen92
Copy link

@azrosen92 azrosen92 commented Mar 27, 2025

Problem

Requiring swagger_helper from swagger_formatter.rb doesn't appear to be necessary. In the worst case it means that a project that configures rswag in other files/locations (for example in a file with other rspec configs), must maintain an empty swagger_helper.rb file. The library itself seems to have run into this issue https://github.com/rswag/rswag/blob/master/rswag-specs/spec/swagger_helper.rb#L3-L4.

Solution

Removes require 'swagger_helper' from the swagger_formatter.

Related Issues

#829

Checklist

  • Added tests
  • Changelog updated
  • Added documentation to README.md
  • Added example of using the enhancement into test-app

Steps to Test or Reproduce

Outline the steps to test or reproduce the PR here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant