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

    Example

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

    Parameters

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator