Input

Valid Decimal Natural

Rule `valid_decimal_natural`: Validates decimal with natural-number style constraints.

Usage

Use for quantity-like decimals.

$schema = \Lemonade\Framework\Validation\ValidationSchema::create()
    ->field('field', 'Field')
        ->decimalNatural()
        ->end();

$result = $validator->validate($payload, $schema);

Stable rule name

valid_decimal_natural for translations, registry lookup and per-rule messages.

Group

Numeric