dotnet / dotnet/aspnetcore

DataAnnotationLocalizerProvider not called for EnumDataType and own ValidationAttribute implementations

Open
#4,853 17 comments 0 reactions 0 assignees View on GitHub
affected-very-few area-mvc enhancement feature-model-binding severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

For `EnumDataType` and all of our self-implemented `ValidationAttribute`s it looks like the `DataAnnotationLocalizerProvider` is not called when generating the error message. Insteaed it just outputs the `ErrorMessage` as is.

Is this a bug? Do I have to specifically configure additional validation attributes somewhere?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.