Skip to content

Commit

Permalink
(deps): Bump YamlDotNet from 15.3.0 to 16.0.0 in /src
Browse files Browse the repository at this point in the history
Bumps YamlDotNet from 15.3.0 to 16.0.0.

---
updated-dependencies:
- dependency-name: YamlDotNet
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and arturcic committed Jul 15, 2024
1 parent cb017de commit 8b836af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
<PackageVersion Include="YamlDotNet" Version="15.3.0" />
<PackageVersion Include="YamlDotNet" Version="16.0.0" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/GitVersion.Configuration/ConfigurationSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ internal class ConfigurationSerializer : IConfigurationSerializer

private sealed class JsonPropertyNameInspector(ITypeInspector innerTypeDescriptor) : TypeInspectorSkeleton
{
public override string GetEnumName(Type enumType, string name) => innerTypeDescriptor.GetEnumName(enumType, name);

public override string GetEnumValue(object enumValue) => innerTypeDescriptor.GetEnumValue(enumValue);

public override IEnumerable<IPropertyDescriptor> GetProperties(Type type, object? container) =>
innerTypeDescriptor.GetProperties(type, container)
.Where(p => p.GetCustomAttribute<JsonIgnoreAttribute>() == null)
Expand Down

0 comments on commit 8b836af

Please sign in to comment.