json-diff
json-diff copied to clipboard
Suggestion: outputKeys & full should output the property value even if it is in excludeKeys
Currently, setting { excludeKeys:['id'] } prevents { outputKeys=['id'] } or { full:true } from working as documented.
The documented behavior for outputKeys is Always print this comma separated keys, with their value, if they are part of an object with any diff while excludeKeys is only to exclude from the comparison.
Use case: We're using the lib to compare a list of object, we do not want to compare the id property which is database generated and has no incidence, but I would like to be able to have it in the output so that the user has a better context to identify which object has changed.