Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/JsonApiDotNetCore/Serialization/JsonApiDeSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ private object SetEntityAttributes(
{
if (attributeValues.TryGetValue(attr.PublicAttributeName, out object newValue))
{
if (attr.IsImmutable)
continue;
var convertedValue = ConvertAttrValue(newValue, attr.PropertyInfo.PropertyType);
attr.SetValue(entity, convertedValue);

if (attr.IsImmutable == false)
_jsonApiContext.AttributesToUpdate[attr] = convertedValue;
_jsonApiContext.AttributesToUpdate[attr] = convertedValue;
}
}

Expand Down