Skip to content

Commit

Permalink
update swagger ui version to v3.52.0, and update swagger editor versi…
Browse files Browse the repository at this point in the history
…on to v3.18.1
  • Loading branch information
PWZER committed Sep 9, 2021
1 parent f54f05a commit 97c758f
Show file tree
Hide file tree
Showing 27 changed files with 54 additions and 409 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Only support Python3.

## Supported

- tornado
- flask
- sanic
- aiohttp
- quart
- starlette
- falcon
- bottle
- [Tornado](https://www.tornadoweb.org/en/stable/)
- [Flask](https://flask.palletsprojects.com/)
- [Sanic](https://sanicframework.org/en/)
- [AIOHTTP](https://docs.aiohttp.org/en/stable/)
- [Quart](https://pgjones.gitlab.io/quart/)
- [Starlette](https://www.starlette.io/)
- [Falcon](https://falcon.readthedocs.io/en/stable/)
- [Bottle](https://bottlepy.org/docs/dev/)

## Usage

Expand Down Expand Up @@ -100,10 +100,10 @@ Only support Python3.
Open `http://<host>:<port>/api/doc` view api doc.

## Swagger UI
Swagger UI version is `3.25.1`. see [https://github.com/swagger-api/swagger-ui](https://github.com/swagger-api/swagger-ui).
Swagger UI version is `v3.52.0`. see [https://github.com/swagger-api/swagger-ui](https://github.com/swagger-api/swagger-ui).

## Swagger Editor
Swagger Editor version is `3.8.1`. see [https://github.com/swagger-api/swagger-editor](https://github.com/swagger-api/swagger-editor).
Swagger Editor version is `v3.18.1`. see [https://github.com/swagger-api/swagger-editor](https://github.com/swagger-api/swagger-editor).

## Update
You can update swagger ui and swagger editor version with
Expand Down
1 change: 0 additions & 1 deletion swagger_ui/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ def _auto_match_handler(self):
if isinstance(self._app, falcon.API):
return self._falcon_handler(use_async=False)
except ImportError as ex:
print(ex)
pass

try:
Expand Down
142 changes: 2 additions & 140 deletions swagger_ui/static/swagger-editor-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-editor-bundle.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions swagger_ui/static/swagger-editor-es-bundle-core.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions swagger_ui/static/swagger-editor-es-bundle-core.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions swagger_ui/static/swagger-editor-es-bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions swagger_ui/static/swagger-editor-es-bundle.js.map

Large diffs are not rendered by default.

79 changes: 2 additions & 77 deletions swagger_ui/static/swagger-editor-standalone-preset.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-editor-standalone-preset.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions swagger_ui/static/swagger-editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-editor.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-editor.js.map

Large diffs are not rendered by default.

135 changes: 2 additions & 133 deletions swagger_ui/static/swagger-ui-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-ui-bundle.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions swagger_ui/static/swagger-ui-es-bundle-core.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions swagger_ui/static/swagger-ui-es-bundle-core.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions swagger_ui/static/swagger-ui-es-bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions swagger_ui/static/swagger-ui-es-bundle.js.map

Large diffs are not rendered by default.

23 changes: 2 additions & 21 deletions swagger_ui/static/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-ui-standalone-preset.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions swagger_ui/static/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-ui.css.map

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions swagger_ui/static/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion swagger_ui/static/swagger-ui.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions swagger_ui/templates/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title> {{ title }} </title>
<link rel="stylesheet" type="text/css" href="{{ url_prefix }}/swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="{{ url_prefix }}/swagger-ui.css" />
<link rel="icon" type="image/png" href="{{ url_prefix }}/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ url_prefix }}/favicon-16x16.png" sizes="16x16" />
<style>
Expand Down Expand Up @@ -33,8 +33,8 @@
<body>
<div id="swagger-ui"></div>

<script src="{{ url_prefix }}/swagger-ui-bundle.js"> </script>
<script src="{{ url_prefix }}/swagger-ui-standalone-preset.js"> </script>
<script src="{{ url_prefix }}/swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="{{ url_prefix }}/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
// Begin Swagger UI call region
Expand All @@ -50,11 +50,11 @@
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
});
// End Swagger UI call region

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

0 comments on commit 97c758f

Please sign in to comment.