You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think what's going on is that the Inclusive compare mode is being passed recursively, instead of only for the outer object. That's very non-intuitive for me, I'd expect it to only be for the keys and not the inner values. Would it be possible to add a new mode that does a shallow inclusive compare instead of a deep inclusive compare?
The text was updated successfully, but these errors were encountered:
I think the current setup works well for deeply nested objects where you only care parts of it changing. But you're right, for arrays that might be a little confusing. Though I would argue things work as intended based on what you posted. The first one is a subset of the second, so seems ok to me.
Can you give some more examples of how such a swallow mode would work?
I ran the following test just now, which passed:
Then I changed it to
which also passed.
I think what's going on is that the
Inclusive
compare mode is being passed recursively, instead of only for the outer object. That's very non-intuitive for me, I'd expect it to only be for the keys and not the inner values. Would it be possible to add a new mode that does a shallow inclusive compare instead of a deep inclusive compare?The text was updated successfully, but these errors were encountered: