fix: @IsIn()
returns false positive true
if not an Array
instance was passed
#1693
Labels
status: fixed
Issues with merged PRs, but not released yet.
type: fix
Issues describing a broken feature.
Description
@IsIn()
decorator always returntrue
, if not anArray
instance was passed aspossibleValues
argument.Minimal code-snippet showcasing the problem
Expected behavior
@IsIn()
should not return false positive result if it can't validate given value.Actual behavior
@IsIn()
returns false positive result if not anArray
instance was passed.The text was updated successfully, but these errors were encountered: