remove require swagger_helper #828
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theswagger_formatter
.Related Issues
#829
Checklist
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.