yaal-coop / scim2-models

SCIM resources serialization and validation with Pydantic
https://scim2-models.readthedocs.io
Apache License 2.0
10 stars 2 forks source link

`PatchOp.path` is required for remove operations #12

Open azmeuk opened 4 months ago

azmeuk commented 4 months ago

RFC7644 indicates that PatchOp.path is required for remove operations:

The "path" attribute value is a String containing an attribute path describing the target of the operation. The "path" attribute is OPTIONAL for "add" and "replace" and is REQUIRED for "remove" operations. See relevant operation sections below for details.

There should be a validator for this.