planb
planb copied to clipboard
Diff-ing Engine
One thing that happens more often than people realize, is that the api changes. Sometimes it's a simple as renaming a key, etc.
I'd like to see a diff-ing engine that can surface changes between the last saved JSON. However, I think a straight up diff would not be helpful, as fixture data can change. Ideally, it'd be a diff on the JSON Schema - identifying changes in JSON structure / key-names / value types. I wonder if you can generate a schema from JSON and then diff on that:
http://stackoverflow.com/questions/7341537/tool-to-generate-json-schema-from-json-data
#10 Adds the straight-up JSON diff, as a first pass. Schema diffing to come.