pingidentity / scim2

The UnboundID SCIM 2.0 SDK for Java
184 stars 75 forks source link

Added capability to evaluate path queries in Patch Add operations. #195

Closed MartinHaeusler closed 1 year ago

MartinHaeusler commented 1 year ago

What does this implement/fix? Explain your changes.

The SCIM2 framework at the moment does not support path queries in PATCH operations if they occur within an "add" op. For example, the following PATCH operation would be invalid:

{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
    ],
    "Operations": [
        {
            "op": "Add",
            "path": "addresses[type eq \"work\"].country",
            "value": "Austria"
        }
    ]
}

... because of the [type eq \"work\"] filter.

Does this close any currently open issues?

Yes: https://github.com/pingidentity/scim2/issues/135

kqarryzada commented 1 year ago

This functionality is now available in the 3.0.0 release, so I'm closing this PR.