You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: enforce immutable mutability checks at runtime in PATCH operations
Move immutable field validation from parse-time to runtime in patch(),
where the resource instance is available. This aligns with RFC 7644
§3.5.2 which allows adding a value to an immutable attribute only if
it had no previous value, and tolerates no-op operations (remove on
unset fields, replace with identical value).
Copy file name to clipboardExpand all lines: doc/changelog.rst
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
Changelog
2
2
=========
3
3
4
+
[0.6.8] - Unreleased
5
+
--------------------
6
+
7
+
Fixed
8
+
^^^^^
9
+
- PATCH operations on :attr:`~scim2_models.Mutability.read_only` fields now correctly reject ``remove`` in addition to ``add`` and ``replace``.
10
+
- PATCH operations on :attr:`~scim2_models.Mutability.immutable` fields are now validated at runtime per :rfc:`RFC 7644 §3.5.2 <7644#section-3.5.2>`: ``add`` is only allowed when the field has no previous value, ``replace`` is only allowed with the same value, and ``remove`` is only allowed on unset fields.
0 commit comments