Fix behavior when patch removes null uneditable fields#11
Fix behavior when patch removes null uneditable fields#11
Conversation
cd63efc to
f3f6080
Compare
|
This is one of the places where the spec unfortunately isn't very clear.
It really depends on where the implicit parentheses on that sentence are.
I opted for the robustness principle ("be conservative in what you do, be liberal in what you accept from others"), so not raising an error since that would just potentially break some clients without providing any actual benefit. |
|
Indeed, I am not 100% convinced by myself here :) I was motivated by RFC7644 §3.5.2 which sounds very general and don't make special cases for empty values:
But, is removing/nulling modifying?
Sounds fair, and in the end this is not a very important topic because data is not edited either way. Maybe I'll ask on the SCIM mailing list to see what is the proper interpretation for this. |
A mutability error should be raised when deleting read only and immutable fields, even if they are empty in the first place.