1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-08 19:47:44 +01: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 deserializer = new DeserializerBuilder()
.WithNamingConvention(UnderscoredNamingConvention.Instance)
.IgnoreUnmatchedProperties()
.Build();
Config = deserializer.Deserialize<Configuration>(configText);