Class: Openapi::Rswag::Api::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi/rswag/api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#swagger_filterObject

Returns the value of attribute swagger_filter.



5
6
7
# File 'lib/openapi/rswag/api/configuration.rb', line 5

def swagger_filter
  @swagger_filter
end

#swagger_rootObject

Returns the value of attribute swagger_root.



5
6
7
# File 'lib/openapi/rswag/api/configuration.rb', line 5

def swagger_root
  @swagger_root
end

Instance Method Details

#resolve_swagger_root(env) ⇒ Object



7
8
9
10
# File 'lib/openapi/rswag/api/configuration.rb', line 7

def resolve_swagger_root(env)
  path_params = env['action_dispatch.request.path_parameters'] || {}
  path_params[:swagger_root] || swagger_root
end