Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1.x] Bump CSharpier.Core and System.Text.Json (#760) #765

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Bumps `xunit` from 2.7.1 to 2.8.0
- Bumps `FSharp.Core` from 8.0.100 to 8.0.400
- Bumps `xunit.runner.visualstudio` from 2.5.8 to 2.8.2
- Bumps `CSharpier.Core` from 0.27.3 to 0.28.2
- Bumps `CSharpier.Core` from 0.27.3 to 0.29.0
- Bumps `Spectre.Console` from 0.48.0 to 0.49.1
- Bumps `Nullean.VsTest.Pretty.TestLogger` from 0.3.0 to 0.4.0
- Bumps `Microsoft.NET.Test.Sdk` from 17.9.0 to 17.10.0
Expand Down Expand Up @@ -190,4 +190,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
[1.6.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.5.0...v1.6.0
[1.5.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.2.0...v1.3.0
[1.3.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.2.0...v1.3.0
3 changes: 2 additions & 1 deletion src/ApiGenerator/ApiGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CSharpier.Core" Version="0.28.2" />
<PackageReference Include="CSharpier.Core" Version="0.29.0" />
<PackageReference Include="Glob" Version="1.1.9" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NSwag.Core" Version="14.1.0" />
Expand All @@ -20,6 +20,7 @@
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.3.0-alpha.20371.2" />
<PackageReference Include="RazorLight" Version="2.3.1" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\**\*.cshtml" />
Expand Down
29 changes: 13 additions & 16 deletions src/OpenSearch.Net/_Generated/Api/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public enum Bytes
T,

[EnumMember(Value = "tb")]
Tb
Tb,
}

[Flags, StringEnum]
Expand All @@ -105,7 +105,7 @@ public enum ExpandWildcards
None = 1 << 3,

[EnumMember(Value = "open")]
Open = 1 << 4
Open = 1 << 4,
}

[StringEnum]
Expand All @@ -118,7 +118,7 @@ public enum Level
Indices,

[EnumMember(Value = "shards")]
Shards
Shards,
}

[StringEnum]
Expand All @@ -143,7 +143,7 @@ public enum TimeUnit
Nanos,

[EnumMember(Value = "s")]
S
S,
}

public static partial class KnownEnums
Expand All @@ -170,10 +170,9 @@ public static string GetStringValue(this Bytes enumValue) =>
Bytes.Pb => "pb",
Bytes.T => "t",
Bytes.Tb => "tb",
_
=> throw new ArgumentException(
$"'{enumValue.ToString()}' is not a valid value for enum 'Bytes'"
)
_ => throw new ArgumentException(
$"'{enumValue.ToString()}' is not a valid value for enum 'Bytes'"
),
};

public static string GetStringValue(this ExpandWildcards enumValue)
Expand All @@ -198,10 +197,9 @@ public static string GetStringValue(this Level enumValue) =>
Level.Cluster => "cluster",
Level.Indices => "indices",
Level.Shards => "shards",
_
=> throw new ArgumentException(
$"'{enumValue.ToString()}' is not a valid value for enum 'Level'"
)
_ => throw new ArgumentException(
$"'{enumValue.ToString()}' is not a valid value for enum 'Level'"
),
};

public static string GetStringValue(this TimeUnit enumValue) =>
Expand All @@ -214,10 +212,9 @@ public static string GetStringValue(this TimeUnit enumValue) =>
TimeUnit.Ms => "ms",
TimeUnit.Nanos => "nanos",
TimeUnit.S => "s",
_
=> throw new ArgumentException(
$"'{enumValue.ToString()}' is not a valid value for enum 'TimeUnit'"
)
_ => throw new ArgumentException(
$"'{enumValue.ToString()}' is not a valid value for enum 'TimeUnit'"
),
};
}
}
Loading