• Checks if the given value is a Set with a size less than or equal to maximum.

    Example

    // Ensure the set has at most 5 entries.
    @SetMaxSize(5)
    values: Set<string>

    Parameters

    • maximum: number

      The maximum allowed size of the set.

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator

Generated using TypeDoc