-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path with a complex filter match only the first occurrence #560
Path with a complex filter match only the first occurrence #560
Conversation
- navigate return a list of sub-schemas - `applyRemoveOperation` and `applyAddOrReplaceOperation` adapted to the new signature (and logic)
This reverts commit e8354a6.
"REPLACE: replace on multiValued objects without complete path"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this contribution this is awesome and it fixes an important loop hole.
I've just put some NIT comments about some commented logs if you can have a look.
As soon as you've fixed it I will create a new version.
Oh i hadn't noticed those comments, i will remove them as soon as i can. |
Kudos, SonarCloud Quality Gate passed! |
Description
To solve this bug i changed slightly the logic of
navigate
,applyRemoveOperation()
andapplyRemoveOperation()
to work with multiple paths (arrays of paths) instead of a single one.I've added some test for checking the cases discussed in the issue.
In the new code there is FIXME describing a possible unwanted error, but it should be only caused by some schemas out of the SCIM standard (with depth greater than 1). If it is ok i can remove the comment otherwise i can try to fix it
Changes include
Closes issue(s)
Resolve #503
Checklist