From 5a144dcb1e0f93bce29d467c1528b7a98721ad42 Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Fri, 21 Aug 2026 04:00:40 +0000 Subject: [PATCH 1/2] fix: update API spec download URL to api-spec.opensearch.org The opensearch-api-specification repo now publishes specs at https://api-spec.opensearch.org/opensearch-openapi.yaml instead of via GitHub release assets. Ref: opensearch-project/opensearch-api-specification#1200 Signed-off-by: Hailong Cui --- java-codegen/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-codegen/build.gradle.kts b/java-codegen/build.gradle.kts index a3e921dfa1..596ad82661 100644 --- a/java-codegen/build.gradle.kts +++ b/java-codegen/build.gradle.kts @@ -72,7 +72,7 @@ application { val localSpecification = file("$projectDir/opensearch-openapi.yaml").toURI().toString() tasks.register("downloadLatestSpec") { - src("https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml") + src("https://api-spec.opensearch.org/opensearch-openapi.yaml") dest(localSpecification) } From f6647dd5cf7520ad62849f6f4babc418d7171f44 Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Fri, 21 Aug 2026 04:07:55 +0000 Subject: [PATCH 2/2] Add CHANGELOG entry Signed-off-by: Hailong Cui --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee8653157b..58c6825763 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Run model tests against both JSON mappers instead of picking one at random ([#2085](https://github.com/opensearch-project/opensearch-java/pull/2085)) - Fix currentSize calculation in BulkIngester ([#2113](https://github.com/opensearch-project/opensearch-java/pull/2113)) +### Changed +- Updated API spec download URL to `https://api-spec.opensearch.org` ([#2116](https://github.com/opensearch-project/opensearch-java/pull/2116)) + ## [Unreleased 3.x] ### Added