Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opensearch-project/opensearch-net
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8f90a659c5ee4c58e94c7d948013a9c29bcdf738
Choose a base ref
..
head repository: opensearch-project/opensearch-net
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 25b56733be65f3065b976cfc70fba9aa71786649
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ApiGenerator/RestSpecDownloader.cs
2 changes: 1 addition & 1 deletion src/ApiGenerator/RestSpecDownloader.cs
Original file line number Diff line number Diff line change
@@ -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}-latest/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);