We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50167e0 commit 61634f1Copy full SHA for 61634f1
src/JsonApiDotNetCore/Serialization/JsonApiDeSerializer.cs
@@ -151,11 +151,11 @@ private object SetEntityAttributes(
151
{
152
if (attributeValues.TryGetValue(attr.PublicAttributeName, out object newValue))
153
154
- if (attr.IsImmutable)
155
- continue;
156
var convertedValue = ConvertAttrValue(newValue, attr.PropertyInfo.PropertyType);
157
attr.SetValue(entity, convertedValue);
158
- _jsonApiContext.AttributesToUpdate[attr] = convertedValue;
+
+ if (attr.IsImmutable == false)
+ _jsonApiContext.AttributesToUpdate[attr] = convertedValue;
159
}
160
161
0 commit comments