SchemaErrorModule
PackageReified.Schema
Functions for lowering and rendering boundary schema failures.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| ofParseError | SchemaError.ofParseError error | Lowers a parse failure. |
| render | SchemaError.render error | Renders a schema error as an English sentence. |
Lowers a parse failure. Parsing failures never become constraint violations.
Parameters
| Name | Type | Description |
|---|---|---|
| error | ParseError |
Returns
SchemaError
Verification Examples
ParseError.MissingValue "int" |> SchemaError.ofParseError