This PR aims to improve the error message of the IsEnum validator. The new error will display the invalid value of the property that was not validated.
Motivation and Context
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
This PR aims to improve the error message of the
IsEnum
validator. The new error will display the invalid value of the property that was not validated.Motivation and Context
Types of changes