Skip to content

Commit

Permalink
Merge pull request #4095 from GitTools/dependabot/nuget/src/YamlDotNe…
Browse files Browse the repository at this point in the history
…t-16.0.0

(deps): Bump YamlDotNet from 15.3.0 to 16.0.0 in /src
  • Loading branch information
arturcic authored Jul 15, 2024
2 parents 1736ea2 + 031feb0 commit 9c5cda5
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 9c5cda5

Please sign in to comment.