Skip to content

fix: do not wrap singular value in slice for patch with value expression#194

Merged
q-uint merged 1 commit intomasterfrom
fix/188-singular-value-incorrectly-wrapped-in-slice
Mar 24, 2026
Merged

fix: do not wrap singular value in slice for patch with value expression#194
q-uint merged 1 commit intomasterfrom
fix/188-singular-value-incorrectly-wrapped-in-slice

Conversation

@q-uint
Copy link
Collaborator

@q-uint q-uint commented Mar 24, 2026

When a PATCH replace operation targets a specific element within a multi-valued attribute using a value expression (e.g. addresses[type eq "work"]), the validated value was incorrectly wrapped in a []interface{} slice. Per RFC 7644 Section 3.5.2.3, the value represents the replacement for matched records and should be returned as-is.

Closes #188

When a PATCH replace operation targets a specific element within a
multi-valued attribute using a value expression (e.g.
addresses[type eq "work"]), the validated value was incorrectly
wrapped in a []interface{} slice. Per RFC 7644 Section 3.5.2.3, the
value represents the replacement for matched records and should be
returned as-is.
@q-uint q-uint merged commit fafae71 into master Mar 24, 2026
8 checks passed
@q-uint q-uint deleted the fix/188-singular-value-incorrectly-wrapped-in-slice branch March 24, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Singular values are incorrectly wrapped in a slice in OperationValidator.validateUpdate

1 participant