lib/rswag/api/configuration.rb in rswag-api-2.2.0 vs lib/rswag/api/configuration.rb in rswag-api-2.3.0
- old
+ new
@@ -1,8 +1,8 @@
module Rswag
module Api
class Configuration
- attr_accessor :swagger_root, :swagger_filter
+ attr_accessor :swagger_root, :swagger_filter, :swagger_headers
def resolve_swagger_root(env)
path_params = env['action_dispatch.request.path_parameters'] || {}
path_params[:swagger_root] || swagger_root
end