Today I can run @{one=1;two=$null} | ConvertTo-Yaml producing the below output:
one: 1
two:
It would be good to have the ability to prevent the output of fields with null values, so callers can choose to toggle this behaviour where their inputs contain properties with null values instead of simply not containing those properties.
Desired behaviour: @{one=1;two=$null} | ConvertTo-Yaml -Options SupressNullValuedProperties would produce the output:
Today I can run
@{one=1;two=$null} | ConvertTo-Yaml
producing the below output:It would be good to have the ability to prevent the output of fields with null values, so callers can choose to toggle this behaviour where their inputs contain properties with null values instead of simply not containing those properties.
Desired behaviour:
@{one=1;two=$null} | ConvertTo-Yaml -Options SupressNullValuedProperties
would produce the output: