Rename redirectUrl optoon to oauth2RedirectUrl

This commit is contained in:
Mohsen Azimi
2015-03-24 13:32:34 -07:00
parent ede1faa0c8
commit 6523318f88
4 changed files with 4 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ onComplete | This is a callback function parameter which can be passed to be not
onFailure | This is a callback function parameter which can be passed to be notified of when SwaggerUI encountered a failure was unable to render. onFailure | This is a callback function parameter which can be passed to be notified of when SwaggerUI encountered a failure was unable to render.
highlightSizeThreshold | Any size response below this threshold will be highlighted syntactically, attempting to highlight large responses can lead to browser hangs, not including a threshold will default to highlight all returned responses. highlightSizeThreshold | Any size response below this threshold will be highlighted syntactically, attempting to highlight large responses can lead to browser hangs, not including a threshold will default to highlight all returned responses.
supportedSubmitMethods | An array of of the HTTP operations that will have the 'Try it out!` option. An empty array disables all operations. This does not filter the operations from the display. supportedSubmitMethods | An array of of the HTTP operations that will have the 'Try it out!` option. An empty array disables all operations. This does not filter the operations from the display.
redirectUrl | OAuth redirect URL oauth2RedirectUrl | OAuth redirect URL
* All other parameters are explained in greater detail below * All other parameters are explained in greater detail below

2
dist/swagger-ui.js vendored
View File

@@ -38,7 +38,7 @@ window.SwaggerUi = Backbone.Router.extend({
]; ];
} }
if (typeof options.redirectUrl === 'string') { if (typeof options.oauth2RedirectUrl === 'string') {
window.oAuthRedirectUrl = options.redirectUrl; window.oAuthRedirectUrl = options.redirectUrl;
} }

File diff suppressed because one or more lines are too long

View File

@@ -32,7 +32,7 @@ window.SwaggerUi = Backbone.Router.extend({
]; ];
} }
if (typeof options.redirectUrl === 'string') { if (typeof options.oauth2RedirectUrl === 'string') {
window.oAuthRedirectUrl = options.redirectUrl; window.oAuthRedirectUrl = options.redirectUrl;
} }