scimmyjs / scimmy

SCIM m(ade eas)y - SCIM 2.0 library for NodeJS
https://scimmyjs.github.io
MIT License
41 stars 10 forks source link

PatchOp add/replace does not work for attributes marked with direction "in" #8

Closed adamstoffel closed 11 months ago

adamstoffel commented 2 years ago

Behavior: when patching a property with direction set to 'in', the attribute is undefined when the ingress handler is called.

In PatchOp.apply(), #target is set to a constructed resource with direction = 'out'. Because of this, when the attribute setter is called in PatchOp.#add, the set does not occur.