diff --git a/src/ApiGenerator/RestSpecDownloader.cs b/src/ApiGenerator/RestSpecDownloader.cs index 772daf8c13..71bac0d807 100644 --- a/src/ApiGenerator/RestSpecDownloader.cs +++ b/src/ApiGenerator/RestSpecDownloader.cs @@ -41,7 +41,7 @@ public static class RestSpecDownloader public static async Task DownloadAsync(string branch, CancellationToken token) { - var githubUrl = $"https://github.com/opensearch-project/opensearch-api-specification/releases/download/{branch}/opensearch-openapi.yaml"; + var githubUrl = $"https://github.com/opensearch-project/opensearch-api-specification/releases/download/{branch}-latest/opensearch-openapi.yaml"; Console.WriteLine($"Downloading OpenAPI spec for branch {branch}"); var spec = await Http.GetStringAsync(githubUrl, token); await File.WriteAllTextAsync(GeneratorLocations.OpenApiSpecFile, spec, token);