pub fn validate_text(value: &str, ty: &TypeExpr) -> Result<(), ValidationError>
Validate a textual value (e.g. query/header/path/form field) against a type.