Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Models not bound from request (like services) should not show up in Modelstate. #2464

Closed
@harshgMSFT

Description

@harshgMSFT

consider this

public void Action([FromService] Service service)
{
}

currently there is an entry in model state like so
key: service, value : null, validation state: Skipped.

Ideally there should be no entry since the model is not bound using user data.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions