Checks if the given value is an array with a size of exactly size.
size
// Ensure the array has exactly 5 entries.@ArraySize(5)values: string[] Copy
// Ensure the array has exactly 5 entries.@ArraySize(5)values: string[]
The allowed size of the array.
Optional
Generic class-validator options.
Checks if the given value is an array with a size of exactly
size
.Example