fix: ignore unmatched YAML properties in PluginSettings
Prevents deserialization crash when config file contains keys from newer plugin versions. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
ac691d3140
commit
7610ad9029
1 changed files with 2 additions and 1 deletions
|
|
@ -65,7 +65,8 @@ namespace MosswartMassacre
|
||||||
|
|
||||||
// build serializer/deserializer once
|
// build serializer/deserializer once
|
||||||
var builder = new DeserializerBuilder()
|
var builder = new DeserializerBuilder()
|
||||||
.WithNamingConvention(UnderscoredNamingConvention.Instance);
|
.WithNamingConvention(UnderscoredNamingConvention.Instance)
|
||||||
|
.IgnoreUnmatchedProperties();
|
||||||
var deserializer = builder.Build();
|
var deserializer = builder.Build();
|
||||||
|
|
||||||
PluginSettings loaded = null;
|
PluginSettings loaded = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue