deepdiff
deepdiff copied to clipboard
Customization of descriptions in the output
Is your feature request related to a problem? Please describe.
We use DeepDiff with great success to compare the states of different systems, thanks a lot! However, the descriptions in the output, e. g. old_value or iterable_item_added are not particularly intuitive to read, something like system1_value or iterable_item_only_in_system2 would be much easier to interpret.
Describe the solution you'd like
Having some kind of label_t1 and label_t1 arguments would be great, which would change the descriptions from new_* to label1_* and *item_added to *item_only_in_label1 would be great.
Describe alternatives you've considered
We considered using str.replace() on DeepDiff.to_json() and it will eventually work, however, new differences might pop up, requiring us to add more replaces.
Hi @germannp Thanks for the feedback. I will keep this in mind. No current plans to add this feature in the immediate future but PR's are very welcome!