Closed
Description
V1ObjectMetadata
defines the namespace
property as follows.
[JsonProperty(PropertyName = "namespace")]
public string NamespaceProperty { get; set; }
This is likely because namespace
is a reserved keyword in C#. However, YamlDotNet does not respect the JsonProperty
attribute, so these deserializers fail when they come across namespace
in the Yaml.
The best fix would be to either use an attribute that YamlDotNet understands, or to rename this property to Namespace
, since C# doesn't care if the N
is capitalized. Lastly, to avoid confusion, this property to could be marked with the @
.
Metadata
Metadata
Assignees
Labels
No labels