@cowwoc/requirements - v4.0.12
    Preparing search index...
    • Sets the contextual information for validators created by this factory.

      This method adds contextual information to error messages. The contextual information is stored as key-value pairs in a map. Values set by this method may be overridden by ValidatorComponent.withContext.

      Parameters

      • value: unknown

        the value of the entry

      • name: string

        the name of an entry

      Returns JavascriptValidatorsImpl

      the underlying validator factory

      NullPointerError if name is not a string