From 7a9c15480aa4dd5fc190220285022eace049c00e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:12:58 +1200 Subject: [PATCH] Bump CSharpier.Core and System.Text.Json (#760) * Bump CSharpier.Core and System.Text.Json Bumps [CSharpier.Core](https://github.com/belav/csharpier) and System.Text.Json. These dependencies needed to be updated together. Updates `CSharpier.Core` from 0.28.2 to 0.29.0 - [Release notes](https://github.com/belav/csharpier/releases) - [Changelog](https://github.com/belav/csharpier/blob/main/CHANGELOG.md) - [Commits](https://github.com/belav/csharpier/compare/0.28.2...0.29.0) Updates `System.Text.Json` from 8.0.0 to 8.0.4 Signed-off-by: Thomas Farr --- updated-dependencies: - dependency-name: CSharpier.Core dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: System.Text.Json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Update changelog & generated code Signed-off-by: Thomas Farr --------- Signed-off-by: dependabot[bot] Signed-off-by: Thomas Farr Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Thomas Farr (cherry picked from commit e352e0b4573356e38bf6f174d7a025285b026389) --- CHANGELOG.md | 4 +-- src/ApiGenerator/ApiGenerator.csproj | 3 ++- src/OpenSearch.Net/_Generated/Api/Enums.cs | 29 ++++++++++------------ 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3baec322c..14abc1449e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 \ No newline at end of file +[1.3.0]: https://github.com/opensearch-project/opensearch-net/compare/v1.2.0...v1.3.0 diff --git a/src/ApiGenerator/ApiGenerator.csproj b/src/ApiGenerator/ApiGenerator.csproj index d3fc1a62ba..e52d09dbb6 100644 --- a/src/ApiGenerator/ApiGenerator.csproj +++ b/src/ApiGenerator/ApiGenerator.csproj @@ -9,7 +9,7 @@ true - + @@ -20,6 +20,7 @@ + diff --git a/src/OpenSearch.Net/_Generated/Api/Enums.cs b/src/OpenSearch.Net/_Generated/Api/Enums.cs index 90b8a319f3..706c3a6523 100644 --- a/src/OpenSearch.Net/_Generated/Api/Enums.cs +++ b/src/OpenSearch.Net/_Generated/Api/Enums.cs @@ -86,7 +86,7 @@ public enum Bytes T, [EnumMember(Value = "tb")] - Tb + Tb, } [Flags, StringEnum] @@ -105,7 +105,7 @@ public enum ExpandWildcards None = 1 << 3, [EnumMember(Value = "open")] - Open = 1 << 4 + Open = 1 << 4, } [StringEnum] @@ -118,7 +118,7 @@ public enum Level Indices, [EnumMember(Value = "shards")] - Shards + Shards, } [StringEnum] @@ -143,7 +143,7 @@ public enum TimeUnit Nanos, [EnumMember(Value = "s")] - S + S, } public static partial class KnownEnums @@ -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) @@ -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) => @@ -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'" + ), }; } }