diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 9451a4cc04..130fb8a2dc 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -35,7 +35,7 @@ - + \ No newline at end of file diff --git a/src/GitVersion.Configuration/ConfigurationSerializer.cs b/src/GitVersion.Configuration/ConfigurationSerializer.cs index 75b30caddd..df18446214 100644 --- a/src/GitVersion.Configuration/ConfigurationSerializer.cs +++ b/src/GitVersion.Configuration/ConfigurationSerializer.cs @@ -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 GetProperties(Type type, object? container) => innerTypeDescriptor.GetProperties(type, container) .Where(p => p.GetCustomAttribute() == null)