Skip to content

Commit 85d89b2

Browse files
author
jnance
committed
fix(de-serializer): do not dasherize a public name
1 parent 4d020f6 commit 85d89b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Serialization/JsonApiDeSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private object _setEntityAttributes(
9393
throw new ArgumentException($"{contextEntity.EntityType.Name} does not contain an attribute named {attr.InternalAttributeName}", nameof(entity));
9494

9595
object newValue;
96-
if (attributeValues.TryGetValue(attr.PublicAttributeName.Dasherize(), out newValue))
96+
if (attributeValues.TryGetValue(attr.PublicAttributeName, out newValue))
9797
{
9898
var convertedValue = TypeHelper.ConvertType(newValue, entityProperty.PropertyType);
9999
entityProperty.SetValue(entity, convertedValue);

0 commit comments

Comments
 (0)