deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

Customization of descriptions in the output

Open germannp opened this issue 3 years ago • 1 comments

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.

germannp avatar Dec 16 '21 10:12 germannp

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!

seperman avatar Dec 17 '21 18:12 seperman