Comments (3)
I gave only a look and i think this is caused by the navigate
function that return only a single resource instead of a list of them. I've forked the project and in these days i will try some solutions.
from scim-patch.
Hey @leonardo-speranzon this is a good catch, and I am not sure how to solve it.
Have you look at the code yourself? Would you be open for a contribution on this?
I will try to look at it as soon as I have a bit more time, but I don't have a lot of time for now unfortunately.
from scim-patch.
I also found out that in the case of patch {op: "replace", value: {newProperty: "post"}, path: "emails"}
on resource like this
{
...
emails: [
{ value: "[email protected]", primary: true, newProperty: "pre"},
{ value: "[email protected]", primary: false, newProperty: "pre" },
]
...
}
act like an add
and simply push a new element {newProperty: "post"}
to the emails
array.
Instead the "equivalent" patch {op: "replace", value: "post", path: "emails.newProperty"}
add the newProperty
property directly to the array (JS magic lol).
I think the correct behavior for both of them is to change the newProperty
property in all of the existing emails.
The RFC say:
o If the target location is a multi-valued attribute and no filter
is specified, the attribute and all values are replaced.
I should open a related issue or i can do it in the same PR?
from scim-patch.
Related Issues (20)
- Add operations with no path and object dot notation not supported HOT 2
- Parsing of paths that include schema URIs is not correct
- Path Resolution HOT 4
- scim-patch partial match doesn't work HOT 3
- Cannot add new entry to multi-valued attribute using a path filter
- `addOrReplaceObjectAttribute` raises the exception when an property is null HOT 5
- Add operations failing for addresses and phoneNumbers HOT 4
- Add/Replace operations with no path but using custom schema attributes do not work HOT 3
- `remove` operation on nested fields that don't exist ends up adding fields till (depth - 1) HOT 3
- scimPatch mutates the original object HOT 2
- 'add' on array attribute performs 'replace' when 'path' is absent
- patchBodyValidation should be resistent if body.Operations is not an array HOT 2
- validate should throw an error if a replace operation is called without an value HOT 3
- Replace operations for attributes that do not exist should be treated as an add HOT 6
- Add sub-attribute to empty multi-valued attribute HOT 17
- Some Azure AD remove operations are not supported HOT 7
- Replace op with value of empty object results in circular reference HOT 1
- Remove not working properly HOT 2
- Patch with replace + non-matching filter on a multi-valued attribute does not error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scim-patch.