Package: effect
Module: SchemaIssue
Creates a Formatter that produces a StandardSchemaV1.FailureResult.
When to use
Use when you need schema parse errors in Standard Schema V1 format, optionally customizing leaf or check issue rendering.
Details
Formatter<StandardSchemaV1.FailureResult>.{ message, path } entries.Pointer paths are accumulated to produce full property paths.defaultLeafHook / defaultCheckHook when no
hooks are provided.Example (Creating a Standard Schema V1 formatter)
import { SchemaIssue } from "effect"
const formatter = SchemaIssue.makeFormatterStandardSchemaV1()
See
makeFormatterDefault — produces a plain string insteadLeafHookCheckHookSignature
declare const makeFormatterStandardSchemaV1: (options?: { readonly leafHook?: LeafHook | undefined; readonly checkHook?: CheckHook | undefined; }) => Formatter<StandardSchemaV1.FailureResult>
Since v4.0.0