Expand description
Reusable field validation for sector plugins.
Validator is a fluent collector: each require_* / optional_* method
records a PluginFieldError when a check fails and is chainable, so a
plugin’s validate_input reads as a declarative list of field constraints.
Validator::finish reports all failures at once rather than stopping at
the first — better for surfacing form errors to a manufacturer.
The free functions num and str_of are convenience readers for
calculate_metrics bodies.
Structs§
- Validator
- Fluent per-field validator. See module docs.