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 399dcdc commit 09697d8Copy full SHA for 09697d8
src/JsonApiDotNetCore/Middleware/IncomingTypeMatchFilter.cs
@@ -32,9 +32,8 @@ public void OnActionExecuting(ActionExecutingContext context)
32
{
33
return;
34
}
35
-
+
36
var request = context.HttpContext.Request;
37
38
if (request.Method == HttpMethods.Patch || request.Method == HttpMethods.Post)
39
40
var deserializedType = GetDeserializedType(context);
@@ -53,7 +52,6 @@ public void OnActionExecuting(ActionExecutingContext context)
53
52
private Type GetDeserializedType(ActionExecutingContext context)
54
55
var deserializedValue = context.ActionArguments.LastOrDefault().Value;
56
57
if (deserializedValue is IList resourceCollection && resourceCollection.Any())
58
59
return resourceCollection[0].GetType();
0 commit comments