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.
2 parents 6a0cc58 + 2c6f751 commit f21862cCopy full SHA for f21862c
src/JsonApiDotNetCore/Serialization/JsonApiDeSerializer.cs
@@ -146,11 +146,11 @@ private object SetEntityAttributes(
146
{
147
if (attributeValues.TryGetValue(attr.PublicAttributeName, out object newValue))
148
149
+ if (attr.IsImmutable)
150
+ continue;
151
var convertedValue = ConvertAttrValue(newValue, attr.PropertyInfo.PropertyType);
152
attr.SetValue(entity, convertedValue);
-
- if (attr.IsImmutable == false)
153
- _jsonApiContext.AttributesToUpdate[attr] = convertedValue;
+ _jsonApiContext.AttributesToUpdate[attr] = convertedValue;
154
}
155
156
0 commit comments