CompositeValidator

public struct CompositeValidator : Validator

The CompositeValidator concatenates all of the conditions of the individual validators. All conditions must be satisfied for a string to be valid.

  • Declaration

    Swift

    public init()
  • Initializes a CompositeValidator.

    Declaration

    Swift

    public init(validators: [Validator])

    Parameters

    validators

    Validators which are used for validation.