Rule Composer
Not
Not
is a rule composer that negates the result of another rule.
Overview
To create a rule that is only satisfied when a specific rule is not met, you can use the Not
Rule Composer.
This composer allows you to negate the result of another rule.
Example
For example, let’s consider a case where we only allow all numbers except 50.
In this example, the Target
type is defined as a refined type that only accepts numbers except 50.
Let’s see how this rule works in practice.