Skip to content

[aspnetcore 10] minimal api validation - localization #64626

@mkalinski93

Description

@mkalinski93

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 etcfeature-validationIssues related to model validation in minimal and controller-based APIs

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions