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

    Function MapNotContains

    • Checks if the given value is a Map which does not contain any of the forbidden values.

      // Ensure the map does not contain the values 'foo' and 'bar'.
      @MapNotContains(['foo', 'bar'])
      values: Map<number, string>

      Type Parameters

      • Value = unknown

        The type of values to check for.

      Parameters

      • forbidden: Iterable<Value>

        The values forbidden in the given map.

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator