1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

Add IgnoreUnmatchedProperties when deserializing YAML (#4061)

This commit is contained in:
Vince Grassia 2024-05-07 09:50:04 -04:00 committed by GitHub
parent 6970207e9e
commit 4a607b7406
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,6 +150,7 @@ public class Context
var configText = File.ReadAllText(ConfigPath); var configText = File.ReadAllText(ConfigPath);
var deserializer = new DeserializerBuilder() var deserializer = new DeserializerBuilder()
.WithNamingConvention(UnderscoredNamingConvention.Instance) .WithNamingConvention(UnderscoredNamingConvention.Instance)
.IgnoreUnmatchedProperties()
.Build(); .Build();
Config = deserializer.Deserialize<Configuration>(configText); Config = deserializer.Deserialize<Configuration>(configText);