From 7c1be3db3b83d86baa5ce8c081dedf87df250d5b Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Fri, 21 Aug 2026 20:17:51 +0800 Subject: [PATCH] fix: update API spec download URL to api-spec.opensearch.org (#2116) * 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 * Add CHANGELOG entry Signed-off-by: Hailong Cui --------- Signed-off-by: Hailong Cui --- CHANGELOG.md | 5 ++++- java-codegen/build.gradle.kts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 218de1f726..afaaf7891c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,10 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Security -## [Unreleased 2.x] +### 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 ### Dependencies diff --git a/java-codegen/build.gradle.kts b/java-codegen/build.gradle.kts index c3339bfafe..4ec44e226c 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) }