-
-
Notifications
You must be signed in to change notification settings - Fork 158
Type match incorrect for PATCH requests #789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
LastOrDefault could possible be more logical but not sure it it's foolproof. |
Hi @bjornharrtell, I'm not confident I understand what is going on here exactly. Can you write up a test that demonstrates the problem? |
Closing due to inactivity. I tried reproducing a bug but I haven't been able to. Feel free to reply with new information and we'll check it out. |
Reopening, as I can reproduce the problem. Debug the test |
|
@bart-degreed I can confirm that your observations are the same as mine. |
Thanks for looking into this. I realise I was looking completely in the wrong direction for a reproduction.
We also need to move away from inspecting We can resolve the expected type from |
It seems logic is at fault at:
JsonApiDotNetCore/src/JsonApiDotNetCore/Middleware/DefaultTypeMatchFilter.cs
Lines 33 to 34 in 36bc489
For PATCH requests that will compare the path id parameter not the entity.
The text was updated successfully, but these errors were encountered: