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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user