Skip to content

Commit

Permalink
Update Swagger UI with latest release 5.7.14 (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku authored Oct 16, 2024
1 parent dd8c155 commit 7752681
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion scripts/update-swagger-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -eu -o pipefail

version="${1:-""}"
if [ -z "$version" ]; then
echo "Missing 'version' argument from command, run as $0 <version>" >&2 && exit 1
echo "Missing 'version' argument from command, run as $0 <version>" >&2 && exit 1
fi
zip_name="v$version.zip"

Expand All @@ -16,6 +16,7 @@ echo "Update vendored Swagger UI"
mv "$zip_name" ./utoipa-swagger-ui-vendored/res/
sed -i "s|version: \`.*\`|version: \`$version\`|" ./utoipa-swagger-ui-vendored/README.md
sed -i "s|version: \`.*\`|version: \`$version\`|" ./utoipa-swagger-ui-vendored/src/lib.rs
sed -i "s|res/v.*\.zip|res/v$version.zip|" ./utoipa-swagger-ui-vendored/src/lib.rs

echo "Update utoipa-swagger-ui Swagger UI version"
sed -i "s|tags/v.*>|tags/v$version.zip>|" ./utoipa-swagger-ui/README.md
Expand Down
1 change: 1 addition & 0 deletions utoipa-swagger-ui-vendored/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

### Changed

* Update Swagger UI with latest release 5.7.14 (https://github.com/juhaku/utoipa/pull/1142)
* Remove commit commit id from changelogs (https://github.com/juhaku/utoipa/pull/1077)

## 0.1.1 - May 22 2024
Expand Down
2 changes: 1 addition & 1 deletion utoipa-swagger-ui-vendored/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "utoipa-swagger-ui-vendored"
description = "Vendored Swagger UI for utoipa"
license = "MIT OR Apache-2.0"
readme = "README.md"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
keywords = ["swagger-ui", "vendored", "openapi", "documentation"]
repository = "https://github.com/juhaku/utoipa"
Expand Down
2 changes: 1 addition & 1 deletion utoipa-swagger-ui-vendored/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Swagger UI when `vendored` crate feature is enabled for `utoipa-swagger-ui` crat
Vendored Swagger UI provides the means to serve Swagger UI in sandboxed environments where network access or
even other means to provide Swagger UI is not possible.

**Swagger UI version: `5.17.12`**
**Swagger UI version: `5.17.14`**

## License

Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions utoipa-swagger-ui-vendored/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! Vendored Swagger UI provides the means to serve Swagger UI in sandboxed environments where network access or
//! even other means to provide Swagger UI is not possible.
//!
//! **Swagger UI version: `5.17.12`**
//! **Swagger UI version: `5.17.14`**
//!
//! ## License
//!
Expand All @@ -16,4 +16,4 @@
/// Swagger UI zip bytes
#[doc(hidden)]
pub const SWAGGER_UI_VENDORED: &[u8] = std::include_bytes!("../res/v5.17.12.zip");
pub const SWAGGER_UI_VENDORED: &[u8] = std::include_bytes!("../res/v5.17.14.zip");
6 changes: 6 additions & 0 deletions utoipa-swagger-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog - utoipa-swagger-ui

## Unreleased

### Changed

* Update Swagger UI with latest release 5.7.14 (https://github.com/juhaku/utoipa/pull/1142)

## 8.0.0 - Oct 14 2024

### Added
Expand Down
2 changes: 1 addition & 1 deletion utoipa-swagger-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ utoipa-swagger-ui = { version = "8", features = ["actix-web"] }

* `SWAGGER_UI_DOWNLOAD_URL`: Defines the url from where to download the swagger-ui zip file.

* Current Swagger UI version: <https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.12.zip>
* Current Swagger UI version: <https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.14.zip>
* [All available Swagger UI versions](https://github.com/swagger-api/swagger-ui/tags)

* `SWAGGER_UI_OVERWRITE_FOLDER`: Defines an _optional_ absolute path to a directory containing files
Expand Down
2 changes: 1 addition & 1 deletion utoipa-swagger-ui/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use zip::{result::ZipError, ZipArchive};
/// + absolute path to a folder containing files to overwrite the default swagger-ui files
const SWAGGER_UI_DOWNLOAD_URL_DEFAULT: &str =
"https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.12.zip";
"https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.14.zip";

const SWAGGER_UI_DOWNLOAD_URL: &str = "SWAGGER_UI_DOWNLOAD_URL";
const SWAGGER_UI_OVERWRITE_FOLDER: &str = "SWAGGER_UI_OVERWRITE_FOLDER";
Expand Down
2 changes: 1 addition & 1 deletion utoipa-swagger-ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
//!
//! * `SWAGGER_UI_DOWNLOAD_URL`: Defines the url from where to download the swagger-ui zip file.
//!
//! * Current Swagger UI version: <https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.12.zip>
//! * Current Swagger UI version: <https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.14.zip>
//! * [All available Swagger UI versions](https://github.com/swagger-api/swagger-ui/tags)
//!
//! * `SWAGGER_UI_OVERWRITE_FOLDER`: Defines an _optional_ absolute path to a directory containing files
Expand Down

0 comments on commit 7752681

Please sign in to comment.