operator | method

IValidator operator |(
  1. IValidator other
)

Combines two validators with a logical OR, same as using any

This is Sugar, it allows for more concise validator composition.

Implementation

IValidator operator |(IValidator other) => any([this, other]);