Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 717 Bytes

Negative.md

File metadata and controls

23 lines (16 loc) · 717 Bytes

Negative

Validates that a value is a negative number. Zero is neither positive nor negative, so you must use NegativeOrZero if you want to allow zero as value.

Options

message

type: string default: This value should be negative.
The default message supplied when the value is not less than zero.

Parameter Description
{{ value }} The current (invalid) value
message_strict

type: string default: This values has different types. Given type is {{ compared_type }}; Expected type is {{ expected_type }}.

Parameter Description
{{ value_type }} The current (invalid) value type
{{ compared_type }} The expected value type