Skip to content

Commit

Permalink
Update to Swagger UI 3 v4.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Nov 30, 2021
1 parent 8f23e11 commit d86702c
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 30 deletions.
16 changes: 8 additions & 8 deletions src/NSwag.AspNet.Owin/SwaggerUi3/oauth2-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<title>Swagger UI: OAuth2 Redirect</title>
</head>
<body>
</body>
</html>
<script>
'use strict';
function run () {
Expand All @@ -20,15 +18,15 @@
qp = location.search.substring(1);
}

arr = qp.split("&")
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
arr = qp.split("&");
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
qp = qp ? JSON.parse('{' + arr.join() + '}',
function (key, value) {
return key === "" ? value : decodeURIComponent(value)
return key === "" ? value : decodeURIComponent(value);
}
) : {}
) : {};

isValid = qp.state === sentState
isValid = qp.state === sentState;

if ((
oauth2.auth.schema.get("flow") === "accessCode" ||
Expand All @@ -49,7 +47,7 @@
oauth2.auth.code = qp.code;
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
} else {
let oauthErrorMsg
let oauthErrorMsg;
if (qp.error) {
oauthErrorMsg = "["+qp.error+"]: " +
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
Expand All @@ -73,3 +71,5 @@
run();
});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/NSwag.AspNet.Owin/SwaggerUi3/swagger-ui-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNet.Owin/SwaggerUi3/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/NSwag.AspNet.Owin/SwaggerUi3/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNet.Owin/SwaggerUi3/swagger-ui.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/NSwag.AspNetCore/SwaggerUi3/oauth2-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<title>Swagger UI: OAuth2 Redirect</title>
</head>
<body>
</body>
</html>
<script>
'use strict';
function run () {
Expand All @@ -20,15 +18,15 @@
qp = location.search.substring(1);
}

arr = qp.split("&")
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
arr = qp.split("&");
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
qp = qp ? JSON.parse('{' + arr.join() + '}',
function (key, value) {
return key === "" ? value : decodeURIComponent(value)
return key === "" ? value : decodeURIComponent(value);
}
) : {}
) : {};

isValid = qp.state === sentState
isValid = qp.state === sentState;

if ((
oauth2.auth.schema.get("flow") === "accessCode" ||
Expand All @@ -49,7 +47,7 @@
oauth2.auth.code = qp.code;
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
} else {
let oauthErrorMsg
let oauthErrorMsg;
if (qp.error) {
oauthErrorMsg = "["+qp.error+"]: " +
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
Expand All @@ -73,3 +71,5 @@
run();
});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/NSwag.AspNetCore/SwaggerUi3/swagger-ui-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNetCore/SwaggerUi3/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/NSwag.AspNetCore/SwaggerUi3/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NSwag.AspNetCore/SwaggerUi3/swagger-ui.js

Large diffs are not rendered by default.

0 comments on commit d86702c

Please sign in to comment.