From fdbe65e045d6932f85ac88992605f4a74731f38a Mon Sep 17 00:00:00 2001 From: bkioshn <35752733+bkioshn@users.noreply.github.com> Date: Wed, 17 Jan 2024 17:49:49 +0700 Subject: [PATCH 1/2] fix: openapi info section (#209) * feat: add openapi linter * fix(lint): openapi linting * fix(spectral): add version for CDN * fix(openapi): linting openAPI files in test stage * fix: make the info section compatible with v3.0.0 * style: format rust * fix: remove openapi linter * style: remove EOF line --- catalyst-gateway/bin/src/service/api/mod.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/catalyst-gateway/bin/src/service/api/mod.rs b/catalyst-gateway/bin/src/service/api/mod.rs index a093589b448..ed573a9ae75 100644 --- a/catalyst-gateway/bin/src/service/api/mod.rs +++ b/catalyst-gateway/bin/src/service/api/mod.rs @@ -31,9 +31,6 @@ fn get_api_contact() -> ContactObject { .url("https://projectcatalyst.io") } -/// A summary describing the API -const API_SUMMARY: &str = "Project Catalyst Gateway API"; - /// A long description of the API. Markdown is supported const API_DESCRIPTION: &str = r#"# Catalyst Gateway API. @@ -51,9 +48,7 @@ TODO: /// Get the license details for the API fn get_api_license() -> LicenseObject { - LicenseObject::new("Apache 2.0") - .url("https://www.apache.org/licenses/LICENSE-2.0") - .identifier("Apache-2.0") + LicenseObject::new("Apache 2.0").url("https://www.apache.org/licenses/LICENSE-2.0") } /// Get the terms of service for the API @@ -72,7 +67,6 @@ pub(crate) fn mk_api( .contact(get_api_contact()) .description(API_DESCRIPTION) .license(get_api_license()) - .summary(API_SUMMARY) .terms_of_service(TERMS_OF_SERVICE) .url_prefix(API_URL_PREFIX.as_str()); From e4dbaf675dd789a2bb3cc76b5a6a955f0bc73f2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 17:30:44 +0700 Subject: [PATCH 2/2] chore(deps): bump h2 from 0.3.21 to 0.3.24 in /catalyst-gateway (#213) Bumps [h2](https://github.com/hyperium/h2) from 0.3.21 to 0.3.24. - [Release notes](https://github.com/hyperium/h2/releases) - [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md) - [Commits](https://github.com/hyperium/h2/compare/v0.3.21...v0.3.24) --- updated-dependencies: - dependency-name: h2 dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- catalyst-gateway/Cargo.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalyst-gateway/Cargo.lock b/catalyst-gateway/Cargo.lock index 94082010733..c038dc65b51 100644 --- a/catalyst-gateway/Cargo.lock +++ b/catalyst-gateway/Cargo.lock @@ -867,9 +867,9 @@ checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" [[package]] name = "h2" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" +checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" dependencies = [ "bytes", "fnv", @@ -877,7 +877,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 1.9.3", + "indexmap 2.0.2", "slab", "tokio", "tokio-util",