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

    Function MapNotContainsKeys

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

      // Ensure the map does not contain the keys 13 and 42.
      @MapNotContainsKeys([13, 42])
      values: Map<number, string>

      Type Parameters

      • Key = unknown

        The type of keys to check for.

      Parameters

      • forbidden: Iterable<Key>

        The values forbidden in the given map.

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator