Skip to content

Commit

Permalink
Updated location of the API spec. (opensearch-project#671)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
(cherry picked from commit 645fa9e)
  • Loading branch information
dblock authored and Xtansia committed Aug 14, 2024
1 parent 8e654b6 commit 9c638b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiGenerator/RestSpecDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9c638b9

Please sign in to comment.