You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If property is explicitly set to null or "" then only @IsOptional() works. But if the property is missing undefined validations are applied, why is not undefined also treated in a similar manner. I need to ignore validations on few properties in the class if they are not present, how can I do that?
The text was updated successfully, but these errors were encountered:
If property is explicitly set to
null
or""
then only@IsOptional()
works. But if the property is missingundefined
validations are applied, why is notundefined
also treated in a similar manner. I need to ignore validations on few properties in the class if they are not present, how can I do that?The text was updated successfully, but these errors were encountered: