unity-yaml-parser icon indicating copy to clipboard operation
unity-yaml-parser copied to clipboard

None type in OrderedFlowDict introduces !!null tag

Open rafzi opened this issue 2 years ago • 1 comments

When a unity asset file contains the following:

dict: {key: }

it is parsed as follows:

dict: {key: !!null ''}

I tried changing the style of the None representer but could not make it work. This only happens when inside OrderedFlowDict, normal None works fine.

rafzi avatar Nov 15 '23 11:11 rafzi

If this cannot be made to work easily, a simple workaround would be to remove all !!null '' sub-strings from the final output stream.

rafzi avatar May 08 '24 08:05 rafzi