Skip to content

Commit 3c5f7c4

Browse files
authored
Yaml deserializer strictness: disallow key duplicates (#1176)
[YamlDotNet 12.2.1](https://github.com/aaubry/YamlDotNet/releases/tag/v12.2.1) brought in a new yaml strictness check: no duplicate keys
1 parent fe9a935 commit 3c5f7c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/KubernetesClient.Models/KubernetesYaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static class KubernetesYaml
2525
.WithOverridesFromJsonPropertyAttributes();
2626
private static readonly IDeserializer StrictDeserializer =
2727
CommonDeserializerBuilder
28+
.WithDuplicateKeyChecking()
2829
.Build();
2930
private static readonly IDeserializer Deserializer =
3031
CommonDeserializerBuilder

0 commit comments

Comments
 (0)