fix: Show error when config has unrecognized YAML properties

This makes trash updater more picky about the configuration being
well-formed in order to better help users identify mistakes.
pull/47/head
Robert Dailey 2 years ago
parent a4aa5d71b1
commit dcc4964ca3

@ -16,7 +16,6 @@ public class YamlSerializerFactory : IYamlSerializerFactory
public IDeserializer CreateDeserializer() public IDeserializer CreateDeserializer()
{ {
return new DeserializerBuilder() return new DeserializerBuilder()
.IgnoreUnmatchedProperties()
.WithNamingConvention(UnderscoredNamingConvention.Instance) .WithNamingConvention(UnderscoredNamingConvention.Instance)
.WithTypeConverter(new YamlNullableEnumTypeConverter()) .WithTypeConverter(new YamlNullableEnumTypeConverter())
.WithObjectFactory(_objectFactory) .WithObjectFactory(_objectFactory)

Loading…
Cancel
Save