Data Driven Forms provides several built number validators:

Checks if the number is smaller than a value.

import validatorTypes from '@data-driven-forms/react-form-renderer/validator-types';
{
type: validatorTypes.MIN_NUMBER_VALUE,
value: 5
}

Checks if the number is greater than a value.

import validatorTypes from '@data-driven-forms/react-form-renderer/validator-types';
{
type: validatorTypes.MAX_NUMBER_VALUE,
value: 5
}

number

Value to compate.

boolean default: true

If true, the threshold value will be considered valid.