pub fn validate(value: &str, rule: &str, name: &str) -> Result<Value, String>
Validate value against rule and convert it to its typed form. The error is the spec’s error text.
value
rule