This repository was archived by the owner on Aug 4, 2025. It is now read-only.
Fix sinatra/json error by re-adding sinatra-contrib #26
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.

In #22 the
sinatra-contribgem was replaced withsinatra, but that did not take into account thatsinatra-contribis required for therequire 'sinatra/json'inlib/sinatra/stoplight_admin.rb. See the Sinatra::JSON (part of Sinatra::Contrib) for details.@bolshakov Could you take a look at this? Maybe there is a simple way to add specs to help with the altering of the required gems to keep things like this from happening in the future? I'd be glad to assist with that, if needed.