feature: make @IsEnum() complain about wrong argument type used #2558
Labels
flag: needs discussion
Issues which needs discussion before implementation.
type: feature
Issues related to new features.
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:
Proposed solution
Best would be to somehow force the correct type via typescript definition.
The text was updated successfully, but these errors were encountered: