Skip to content

Type match incorrect for PATCH requests #789

Closed
@bjornharrtell

Description

@bjornharrtell

It seems logic is at fault at:

var deserializedType = context.ActionArguments.FirstOrDefault().Value?.GetType();
var targetType = context.ActionDescriptor.Parameters.FirstOrDefault()?.ParameterType;

For PATCH requests that will compare the path id parameter not the entity.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions