Fix x-kubernetes-int-or-string in CRD can not be desterilized correctly. (#747)
* bug fix * add ut
This commit is contained in:
@@ -225,7 +225,7 @@ namespace k8s
|
||||
continue;
|
||||
}
|
||||
|
||||
var yamlAttribute = new YamlMemberAttribute { Alias = jsonAttribute.PropertyName };
|
||||
var yamlAttribute = new YamlMemberAttribute { Alias = jsonAttribute.PropertyName, ApplyNamingConventions = false };
|
||||
builder.WithAttributeOverride(type, property.Name, yamlAttribute);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user