Skip to main content

check_min_f64

Function check_min_f64 

Source
pub fn check_min_f64(value: f64, min: f64) -> Result<(), ValidationError>
Expand description

Rejects a number below its schema’s minimum.

A NaN compares false against every bound, so it passes here rather than being reported as out of range – it is not a number the schema has anything to say about, and it cannot be serialized as JSON at all.