-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
BlazorSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcblazor/subsvc
Description
Description
Suggestions for improvements of the Blazor form validation docs for .NET 10:
-
Document new features added in RC1
SkipValidation
attribute- Support for type-level validation attributes (in addition to the already existing
IValidatableObject
support)
-
Document behavior of the DataAnnotationsValidator
- After RC1 the new validation infrastructure and consequently the DataAnnotationsValidator component have the same behavior with regards to validation order and short-circuiting as
System.ComponentModel.DataAnnotations.Validator
- We could add a brief description of this logic so that user's are not surprised about the validation outcome when they have a combination of property-level and type-level validation rules
- After RC1 the new validation infrastructure and consequently the DataAnnotationsValidator component have the same behavior with regards to validation order and short-circuiting as
-
Remove information about
ObjectGraphDataAnnotationsValidator
- The docs for complex object validation contain a mixture of information describing both the new validation implementation and the deprecated
ObjectGraphDataAnnotationsValidator
from the unsupoorted NuGet package - We want to remove all mentions of the old package
- Optionally, leave a short note stating that
ObjectGraphDataAnnotationsValidator
should not be used and point the users to the improved capabilities of the standard component
- The docs for complex object validation contain a mixture of information describing both the new validation implementation and the deprecated
-
MOVED TO Server validation with a validator component upgrade #36051
Idea: Replace use of MVC controller with Minimal API in the section "Server validation with a validator component" to showcase the unified validation experienceThe API controller uses MVC-based validation which also usesDataAnnotations
attribute to specify validation rules. However, it is configured differently and might have different behavior in some cases (e.g. validation is skipped withValidateNever
attribute in MVC but withSkipValidation
attribute in the unified validation code)Up for debate: Speaking of "server validation" and "client validation" might also be a bit confusing in the context of Blazor Server - maybe rephrase the section using terminology such as "data API", "backend", or "backend API"?
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/forms/validation?view=aspnetcore-10.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/forms/validation.md
Document ID
bcb470e1-c859-0549-b4ef-c6c9b7ef2c72
Platform Id
b4c1bad9-fc7a-21f5-2552-f0f3617f77db
Article author
Metadata
- ID: bcb470e1-c859-0549-b4ef-c6c9b7ef2c72
- PlatformId: b4c1bad9-fc7a-21f5-2552-f0f3617f77db
- Service: aspnet-core
- Sub-service: blazor
Metadata
Metadata
Assignees
Labels
BlazorSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcblazor/subsvc
Type
Projects
Status
Done