Any lower-level platform failure that is not a clean run-and-exit-nonzero:
non-NotFound spawn failure, stdout/stderr stream read failure, exitCode
await failure, permission denied, signal interruption. tmux did not run to a
nonzero exit — something below that broke.
Returns a function that creates a schema-backed subclass with this class's
fields plus additional fields.
When to use
Use when you need a subclass whose constructor validates both inherited
fields and newly added fields.
Details
The returned function accepts either a field map or a Struct. When you
pass a Struct, checks attached to that extension schema are preserved and
combined with checks from the base class schema.
Gotchas
Checks from a Struct argument are evaluated against the full subclass
value after inherited and extension fields are merged. Object-wide checks
such as isMaxProperties count inherited fields too.
Constructs a value from the make input representation synchronously.
When to use
Use when constructor input is trusted or when validation failure
should abort with a thrown Error.
Details
Applies constructor defaults and type-side validation according to
MakeOptions.
Gotchas
Throws an Error with the schema issue in its cause when validation
fails. Schema validation failures use the generic message
"Schema validation failed"; format the cause explicitly with
SchemaIssue.makeFormatterDefault() when human-readable details are needed.
Causes that contain defects, interruptions, or other non-schema reasons
throw with the underlying Cause attached instead.
Constructs a value from the make input representation, returning Option.none
when validation fails.
When to use
Use when you only need to know whether construction succeeds
and do not need validation details.
Details
Applies constructor defaults and type-side validation according to
MakeOptions.
Gotchas
Only causes made entirely of schema issues are converted to None. Causes
that contain defects, interruptions, or other non-schema reasons throw
instead.
Returns a new struct with the fields modified by the provided function.
Details
Options:
unsafePreserveChecks - if true, keep any .check(...) constraints
that were attached to the original struct. Defaults to false.
Warning: This is an unsafe operation. Since mapFields
transformations change the schema type, the original refinement functions
may no longer be valid or safe to apply to the transformed schema. Only
use this option if you have verified that your refinements remain correct
after the transformation.
Any lower-level platform failure that is not a clean run-and-exit-nonzero: non-
NotFoundspawn failure, stdout/stderr stream read failure,exitCodeawait failure, permission denied, signal interruption. tmux did not run to a nonzero exit — something below that broke.