Std.Validate
20 public declarations
- about
Str -> Str -> fn(Map[Str, Str]) -> Bool -> &Map[Str, Str] -> Std.Validate.ReportA rule over the whole form rather than one field, for a check that needs
- also
&Std.Validate.Report -> &Std.Validate.Report -> Std.Validate.ReportTwo reports together, for a program that checked in more than one place.
- check
&Array[(Std.Validate.Field, Array[Std.Validate.Rule])] -> Std.Validate.ReportWhat a whole form's rules found.
- checkField
&Std.Validate.Field -> &Array[Std.Validate.Rule] -> Std.Validate.ReportWhat one field's rules found.
- describe
&Std.Validate.Rule -> StrWhat a rule expects, as text.
- Failure
One thing that is wrong.
- failureCount
&Std.Validate.Report -> IntHow many things are wrong.
- failuresFor
&Std.Validate.Report -> Str -> Array[Str]What is wrong with one field.
- faulty
&Std.Validate.Report -> Str -> BoolWhether one field is wrong.
- faultyFields
&Std.Validate.Report -> Array[Str]The fields that are wrong, each once, in the order they first appeared.
- field
Str -> Str -> Std.Validate.FieldA field and its value.
- Field
One field and what was submitted for it.
- nothingWrong
Std.Validate.ReportNothing wrong.
- passed
&Std.Validate.Report -> BoolWhether a report found nothing.
- render
&Std.Validate.Report -> StrWhat a report says, one line per failure.
- Report
Everything that is wrong.
- Rule
What a value must be, and what to say when it is not.
- satisfied
Str -> &Std.Validate.Rule -> BoolWhether a value satisfies a rule.
- valuesOf
&Array[Std.Validate.Field] -> Map[Str, Str]The submitted values, by field, for a rule that needs more than one.
- wholeOf
Str -> Option[Int]A value read as a whole number, once the rules said it is one.
