Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove swagger vulnerability #406

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.33.8
- Upgrade the Swagger UI dependency to remove a very dangerous vulnerability.

## v0.33.7
- Update requirements packages for docs.
- Update gotool version for pipeline.
Expand Down
Empty file modified dist/favicon-16x16.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified dist/favicon-32x32.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified dist/oauth2-redirect.html
100755 → 100644
Empty file.
85 changes: 63 additions & 22 deletions dist/swagger-ui-bundle.js
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui-bundle.js.map
100755 → 100644

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions dist/swagger-ui-standalone-preset.js
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui-standalone-preset.js.map
100755 → 100644

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/swagger-ui.css
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.css.map
100755 → 100644

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/swagger-ui.js
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-ui.js.map
100755 → 100644

Large diffs are not rendered by default.

67 changes: 32 additions & 35 deletions index.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="dist/swagger-ui.css" />
<link
rel="icon"
type="image/png"
href="dist/favicon-32x32.png"
sizes="32x32"
/>
<link
rel="icon"
type="image/png"
href="dist/favicon-16x16.png"
sizes="16x16"
/>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<style>
html {
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after {
*:after
{
box-sizing: inherit;
}

body {
margin: 0;
body
{
margin:0;
background: #fafafa;
}
</style>
Expand All @@ -40,24 +33,28 @@
<body>
<div id="swagger-ui"></div>

<script src="dist/swagger-ui-bundle.js"></script>
<script src="dist/swagger-ui-standalone-preset.js"></script>
<script src="./swagger-ui-bundle.js"> </script>
<script src="./swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "./modules/swagger.yaml",
dom_id: "#swagger-ui",
validatorUrl: null,
deepLinking: true,
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
layout: "StandaloneLayout"
});
// End Swagger UI call region
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
// End Swagger UI call region

window.ui = ui;
};
</script>
window.ui = ui
}
</script>
</body>
</html>