-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-validationIssues related to model validation in minimal and controller-based APIsIssues related to model validation in minimal and controller-based APIs
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
hey folks,
Im trying desperately to use minimal api with the new validation support in .net 10.
The validation itself works good, but I came to notice that the data annotation validation is not localized whenever the request localization is changed. Default is english and the only way to come around seems to create custom data annotation attributes.
Expected Behavior
If the request locale is different than english, the failed validation should display the translated texts into the problem detail
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
10.0.100
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-validationIssues related to model validation in minimal and controller-based APIsIssues related to model validation in minimal and controller-based APIs