Skip to content
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Simple Flask blueprint for adding [Swagger UI](https://github.com/swagger-api/swagger-ui) to your flask application.

Included Swagger UI version: 4.11.1.
Included Swagger UI version: 5.18.2.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion flask_swagger_ui/dist/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.11.1
v5.18.2
6 changes: 3 additions & 3 deletions flask_swagger_ui/dist/oauth2-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var isValid, qp, arr;

if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1);
qp = window.location.hash.substring(1).replace('?', '&');
} else {
qp = location.search.substring(1);
}
Expand All @@ -38,7 +38,7 @@
authId: oauth2.auth.name,
source: "auth",
level: "warning",
message: "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
});
}

Expand All @@ -58,7 +58,7 @@
authId: oauth2.auth.name,
source: "auth",
level: "error",
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server"
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server."
});
}
} else {
Expand Down
3 changes: 1 addition & 2 deletions flask_swagger_ui/dist/swagger-ui-bundle.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions flask_swagger_ui/dist/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions flask_swagger_ui/dist/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flask_swagger_ui/dist/swagger-ui.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flask_swagger_ui/dist/swagger-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flask_swagger_ui/dist/swagger-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="flask-swagger-ui",
version="4.11.1",
version="5.18.2",
description="Swagger UI blueprint for Flask",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
4 changes: 3 additions & 1 deletion update-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ pushd flask_swagger_ui/dist > /dev/null

OUTPUT_FILE=${RELEASE}.tar.gz
curl -s https://api.github.com/repos/swagger-api/swagger-ui/releases/latest | grep tarball_url | cut -d '"' -f 4 | wget -q -O "${OUTPUT_FILE}" -i -
tar --wildcards --strip-components=2 -xvf ${OUTPUT_FILE} '*/dist'
# Check if GNU or BSD tar
WILDCARD_FLAG=$(tar --version | grep -q GNU && echo "--wildcards" || echo "")
tar $WILDCARD_FLAG --strip-components=2 -xvf ${OUTPUT_FILE} '*/dist'
echo "${RELEASE}" > VERSION
rm index.html
rm ${OUTPUT_FILE}
Expand Down