lib/rswag/ui/configuration.rb in rswag-ui-2.11.0 vs lib/rswag/ui/configuration.rb in rswag-ui-2.12.0
- old
+ new
@@ -24,9 +24,10 @@
@oauth_config_object = {}
@basic_auth_enabled = false
end
def swagger_endpoint(url, name)
+ ActiveSupport::Deprecation.warn('Rswag::Ui: WARNING: The method will be renamed to "openapi_endpoint" in v3.0')
@config_object[:urls] ||= []
@config_object[:urls] << { url: url, name: name }
end
def basic_auth_credentials(username, password)