Skip to content

User-specified ErrorMessage on DataTypeAttribute will most likely get overridden #23

@Carl-Hugo

Description

@Carl-Hugo

Additional context

  1. Is this even a use-case worth fixing since specifying a custom ErrorMessage would defy the idea behind localizing error message?
  2. This should be validated.

Describe the bug
User-specified ErrorMessage on DataTypeAttribute might (will most likely) get overridden by ForEvolve.AspNetCore.Localization.

To Reproduce
Steps to reproduce the behavior:

  1. Create a model with any DataTypeAttribute decorating a property.
  2. Set a custom ErrorMessage
  3. Display it somewhere and load that page.
  4. The default ForEvolve.AspNetCore.Localization message would most likely be displayed.

Expected behavior
The user-specified ErrorMessage should be displayed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions