Suggestion: @IsOptional()
or @ValidateIf()
by themselves should not satisfy all-properties-are-whitelisted
#189
Labels
Since these two decorators exist to conditionally ignore other validation decorators, it is probably a mistake if no other validation decorators are present.
The following is probably a mistake,
otherProperty
needs another validation decorator.Alternatively, this could be a totally separate rule (
no-useless-validation-decorators
?) but that seems excessively complex to me.I'd be happy to open a PR for this if the idea has merit!
The text was updated successfully, but these errors were encountered: