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.

Add support for validation attributes on parameters #6790

@rynowak

Description

@rynowak

Update: As of 2.1.0, validation attributes are allowed on controller parameters, bound controller parameters, page model properties and handler method parameters. To use this feature, the application must opt in to 2.1 (or newer) compatibility behavior.

services.AddMvc()
                .SetCompatibilityVersion(CompatibilityVersion.Version_2_1);

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions