Open
Description
Description
When @IsEnum()
is used in combination with array value passed as an argument the code should generate an error or warning instead of silently letting user to use it incorrectly.
The validator seems to work with array, but the generated message is not correct when array is used:
"message": "Bad Request: status must be one of the following values: "
Proposed solution
Best would be to somehow force the correct type via typescript definition.