Open jayudhandha opened 4 years ago
Ok I found the issue,
The issue is with the version of snakeyaml. If we download the zip of Props2YAML version 0.5, It contains the snakeyaml version 1.16.
My above issue is being reproduced when we use snakeyaml version 1.24 (In my case)
Above problme is not being reproduced with snakeyaml 1.16 which is being default shipped with the zip
I am converting it my map into yaml.
Map:
{management.endpoints.web.exposure.include= health, info, refresh, shutdown, selftest, listProcessors}
Output of code Props2YAML.fromContent(yaml.dump(Map)).convert()
Expected Output:
Actual Output:
Note:
I tried to play with this map in my sample file with below code
This is giving me correct output.
Why i can't make it work with the code
Props2YAML.fromContent(yaml.dump(Map)).convert()
?(Which is mentioned in README)Thanks, Jayesh