Fix x-kubernetes-int-or-string in CRD can not be desterilized correctly. (#747)

* bug fix

* add ut
This commit is contained in:
Binyang2014
2021-12-03 10:00:29 -08:00
committed by GitHub
parent e45fa773ba
commit 6c539873b5
2 changed files with 36 additions and 1 deletions

View File

@@ -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);
}
}