Sha256: a043c5fd3c885ef255829db603d16bf6b1b4eee1182e353aec8147884cd3de42
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
require "sinatra/swagger/param_validator" require "sinatra/swagger/spec_enforcer" require "sinatra/swagger/spec_verb" require "sinatra/swagger/version_header" module Sinatra module Swagger module RecommendedSetup def self.registered(app) app.register Sinatra::Swagger::SpecEnforcer unless app.production? app.register Sinatra::Swagger::ParamValidator app.register Sinatra::Swagger::SpecVerb app.register Sinatra::Swagger::VersionHeader end end end register Swagger::RecommendedSetup end
Version data entries
3 entries across 3 versions & 1 rubygems