aspnetcore/src/Mvc/test
Pranav K da3f97b0ad
Fix client validation for record types (#26159)
* Fix client validation for record types

Server validation for record types uses metadata from parameters
when validating record type properties. However client validation
does not use the parameter to harvest client validation attributes.

In the absence of this change, validation on parameters would require server
round trips which is unexcepted and not at parity with validation applied
to properties on regular classes or record types.

Validation experience with record types is subpar and requires server
round trips.

No. This feature is new to 5.0.

Low. The change is isolated to record types and does not affect other code paths. We have
unit and functional test coverage to verify this change.

* Correctly dispose app after use
2020-09-22 22:02:49 -07:00
..
Mvc.FunctionalTests Fix client validation for record types (#26159) 2020-09-22 22:02:49 -07:00
Mvc.IntegrationTests
WebSites Fix client validation for record types (#26159) 2020-09-22 22:02:49 -07:00