Checks if the given value is a Set with a size less than or equal to maximum.
maximum
// Ensure the set has at most 5 entries.@SetMaxSize(5)values: Set<string> Copy
// Ensure the set has at most 5 entries.@SetMaxSize(5)values: Set<string>
The maximum allowed size of the set.
Optional
Generic class-validator options.
Checks if the given value is a Set with a size less than or equal to
maximum
.Example