aspnetcore/src/Mvc/test/WebSites
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
..
ApiExplorerWebSite
ApplicationModelWebSite
BasicWebSite Guard against client disconnect exceptions that appear when reading body (#25146) 2020-08-25 09:29:50 -07:00
Common [Mvc] Fix global state in controller and action endpoint data sources. 2020-09-12 10:03:32 -07:00
ControllersFromServicesClassLibrary
ControllersFromServicesWebSite Made the encodings of .razor and .cshtml files in the repo consistent (#23502) 2020-06-30 12:03:01 -07:00
CorsWebSite
ErrorPageMiddlewareWebSite Made the encodings of .razor and .cshtml files in the repo consistent (#23502) 2020-06-30 12:03:01 -07:00
FilesWebSite
FormatterWebSite [master] Update dependencies from dotnet/runtime dotnet/efcore (#24717) 2020-08-10 19:50:18 +00:00
GenericHostWebSite
HtmlGenerationWebSite Fix client validation for record types (#26159) 2020-09-22 22:02:49 -07:00
RazorBuildWebSite
RazorBuildWebSite.PrecompiledViews
RazorBuildWebSite.Views
RazorPagesClassLibrary Made the encodings of .razor and .cshtml files in the repo consistent (#23502) 2020-06-30 12:03:01 -07:00
RazorPagesWebSite Made the encodings of .razor and .cshtml files in the repo consistent (#23502) 2020-06-30 12:03:01 -07:00
RazorWebSite Made the encodings of .razor and .cshtml files in the repo consistent (#23502) 2020-06-30 12:03:01 -07:00
RoutingWebSite [Mvc] Fix global state in controller and action endpoint data sources. 2020-09-12 10:03:32 -07:00
SecurityWebSite Made the encodings of .razor and .cshtml files in the repo consistent (#23502) 2020-06-30 12:03:01 -07:00
SimpleWebSite
TagHelpersWebSite Made the encodings of .razor and .cshtml files in the repo consistent (#23502) 2020-06-30 12:03:01 -07:00
VersioningWebSite
XmlFormattersWebSite
Directory.Build.props