Closed Ilargi12 closed 8 months ago
Hi @Ilargi12
This is by design. include_paths
requires the full path to the parent object where we ignore any diffs under that parent object.
https://zepworks.com/deepdiff/current/exclude_paths.html#include-paths
Your full path to comment
is root[0]['comment']
.
What you need is a include_regex_paths
parameter, which we don't have yet. PRs are very welcome.
Describe the bug When passing value to include_path param it doesn't show diff.
To Reproduce
Result
Expected behavior
OS, DeepDiff version and Python version (please complete the following information):
Additional context When passing
"root[1]['comment']"
as a value to include_path it works for the second item but I would want to check comment for every item.