title: Class Validator @ValidateIf() not working properly
body: <p>I have the following class in nest js with this class validator:</p>
  
  <pre><code> @ValidateIf(val =&gt; val !== '*')
   @IsObject()
   @IsNotEmptyObject()
   queryParams: DbQuery | '*';
  </code></pre>
  
  <p>If I send '*' it returns</p>
  
  <pre><code> [ 'queryParams must be a non-empty object' ] 
  </code></pre>