StackStorm / orquestaconvert

Converts Mistral workflows into Orchestra workflows
Apache License 2.0
13 stars 7 forks source link

NULL values are implicitly serialized #10

Open blag opened 6 years ago

blag commented 6 years ago

Converting null values is difficult because the ruamel package doesn't explicitly serialize None to null - it simply leaves the value blank.

Observe:

input:
  - foo
  - bar
  - baz: null

Which reserializes to:

input:
  - foo
  - bar
  - baz:  # implicit null

Luckily empty values are deserialized to None anyway, so this doesn't break anything, but it does impact readability.

This is reported in ruamel issue #169.