dyff version v0.5-beta.1
Implement change root support
Add flags and implementation code to support changing the root level of a given input file, or both. Depending on the actual object that is referenced by the path that serves as the new root level, there are use cases where a list should be translated into documents, or where the list is used as the root level itself.
This enables diffs between YAMLs (or JSON) with different types of structures, for example:
---
a: foo
---
a: bar
compared with
{
"items": [
{"a": "Foo"},
{"a": "bar"}
]
}
Big thanks to @adamdecaf for the idea.