-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
Given a User with an emails payload of:
"emails": [
{
"value": "[email protected]",
"type": "work",
"primary": true
},
{
"value": "[email protected]",
"type": "home"
},
{
"value": "[email protected]",
"type": "private"
},
{
"value": "[email protected]"
}
],
When patching with the following request
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"path": "emails[value eq \"[email protected]\"]",
"op": "replace",
"value": "{\n \"type\" : \"business\",\n \"primary\" : false,\n \"display\" : \"testEmail\",\n \"value\" : \"[email protected]\",\n \"$ref\" : \"ref\"\n}"
}
]
}
I expect the outcome to be
"emails": [
{
"value": "[email protected]",
"type": "business",
"display": "testEmail",
"primary": true
},
{
"value": "[email protected]",
"type": "home"
},
{
"value": "[email protected]",
"type": "private"
},
{
"value": "[email protected]"
}
],
But the actual outcome is
"emails": [
{
"value": "[email protected]",
"type": "business",
"primary": false
}
],
According to the wiki, it says that this should only update matching nodes from the filter https://github.com/Captain-P-Goldfish/SCIM-SDK/wiki/Patching-resources#add-3
When using add
with the same filter, a new item is just added to the array, they aren't "merged" together
Metadata
Metadata
Assignees
Labels
No labels