class-validator-extended - v4.2.0
    Preparing search index...

    Function MapMinSize

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

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

      Parameters

      • minimum: number

        The minimum allowed size of the map.

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator