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

    Function MapNotEmpty

    • Checks if the given value is a Map with at least one entry.

      // Ensure the map is not empty.
      @MapNotEmpty()
      values: Map

      Parameters

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator