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

    Example

    // Ensure the map has at most 5 entries.
    @MapMaxSize(5)
    values: Map<string, string>

    Parameters

    • maximum: number

      The maximum allowed size of the map.

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator