From dcc4964ca3d0f2c3cb2056bb5569bea9b8e7e080 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Mon, 14 Feb 2022 23:07:41 -0600 Subject: [PATCH] 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. --- src/TrashLib/Config/YamlSerializerFactory.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/TrashLib/Config/YamlSerializerFactory.cs b/src/TrashLib/Config/YamlSerializerFactory.cs index 7a596252..51294411 100644 --- a/src/TrashLib/Config/YamlSerializerFactory.cs +++ b/src/TrashLib/Config/YamlSerializerFactory.cs @@ -16,7 +16,6 @@ public class YamlSerializerFactory : IYamlSerializerFactory public IDeserializer CreateDeserializer() { return new DeserializerBuilder() - .IgnoreUnmatchedProperties() .WithNamingConvention(UnderscoredNamingConvention.Instance) .WithTypeConverter(new YamlNullableEnumTypeConverter()) .WithObjectFactory(_objectFactory)