-
Notifications
You must be signed in to change notification settings - Fork 827
Open
Labels
flag: needs discussionIssues which needs discussion before implementation.Issues which needs discussion before implementation.type: featureIssues related to new features.Issues related to new features.
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.
xylim98, GarrisonD and leemhoon00
Metadata
Metadata
Assignees
Labels
flag: needs discussionIssues which needs discussion before implementation.Issues which needs discussion before implementation.type: featureIssues related to new features.Issues related to new features.