fix: isNotEmptyObject nullable
option works opposite way
#1554
Labels
status: fixed
Issues with merged PRs, but not released yet.
type: fix
Issues describing a broken feature.
Description
nullable
option for@IsNotEmptyObject
but it works the opposite way.Expected behavior
expected behavior from previous example in #678 is:
Actual behavior
in the current test suite, there's no test for
nullable: false
case.for
nullable: true
testing,null
andundefined
are being treated as invalid values.here are some tests to prove:
The text was updated successfully, but these errors were encountered: