Quoted non-string values remain quoted after serialization (#442)

* add failing test for environment variable and annotation yaml serialization

* simplify the test case

* initial tests passing with StringQuotingEmitter

* cleanup

* expand test

* add attribution

* run dotnet format
This commit is contained in:
Ridwan Hoq
2020-05-11 16:12:21 -05:00
committed by GitHub
parent 4c85bc1de1
commit b32f9d1567
3 changed files with 83 additions and 0 deletions

View File

@@ -135,6 +135,7 @@ namespace k8s
.WithNamingConvention(new CamelCaseNamingConvention())
.WithTypeInspector(ti => new AutoRestTypeInspector(ti))
.WithTypeConverter(new IntOrStringYamlConverter())
.WithEventEmitter(e => new StringQuotingEmitter(e))
.BuildValueSerializer();
emitter.Emit(new StreamStart());
emitter.Emit(new DocumentStart());