multi-party-computation-controller-api
    Preparing search index...

    Custom cross-field validator: ensures threshold does not exceed participants. Checked only after both fields pass their individual constraints, so this is the last guard.

    Implements

    • ValidatorConstraintInterface
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • __namedParameters: ValidationArguments

      Returns string

      The default validation failure message.

    • Parameters

      • threshold: number

        The threshold value to validate.

      • args: ValidationArguments

        Context containing the parent DTO.

      Returns boolean

      true if threshold is within participants or not yet parseable.