github homeport/dyff v0.5-beta.1
dyff version v0.5-beta.1

latest releases: v1.7.1, v1.7.0, v1.6.0...
6 years ago

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"}
  ]
}

image

Big thanks to @adamdecaf for the idea.

Don't miss a new dyff release

NewReleases is sending notifications on new releases.