Skip to content

Commit

Permalink
Bump CSharpier.Core and System.Text.Json (#760) (#765)
Browse files Browse the repository at this point in the history
* 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](belav/csharpier@0.28.2...0.29.0)

Updates `System.Text.Json` from 8.0.0 to 8.0.4

Signed-off-by: Thomas Farr <tsfarr@amazon.com>

---
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] <support@github.com>

* Update changelog & generated code

Signed-off-by: Thomas Farr <tsfarr@amazon.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thomas Farr <tsfarr@amazon.com>
(cherry picked from commit e352e0b)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
Xtansia and dependabot[bot] authored Aug 19, 2024
1 parent 09a0d3f commit 02688da
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
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'"
),
};
}
}

0 comments on commit 02688da

Please sign in to comment.