Checks if the given value is a Set with a size of exactly size.
size
// Ensure the set has exactly 5 entries.@SetSize(5)values: Set<string> Copy
// Ensure the set has exactly 5 entries.@SetSize(5)values: Set<string>
The allowed size of the set.
Optional
Generic class-validator options.
Checks if the given value is a Set with a size of exactly
size
.Example