Closed astrieanna closed 8 years ago
While verification is helpful in tests and qa, I don't want to needlessly break my application in production. How can I globally turn off verification of the swagger documentation?
Nevermind, I think I found it: app.set :result_validation, (ENV['RACK_ENV'] != 'production')
app.set :result_validation, (ENV['RACK_ENV'] != 'production')
https://github.com/archiloque/sinatra-swagger-exposer/blob/master/lib/sinatra/swagger-exposer/swagger-exposer.rb#L22
While verification is helpful in tests and qa, I don't want to needlessly break my application in production. How can I globally turn off verification of the swagger documentation?