API reference › @evolu/common › Type › ChildTypeOptions
Defined in: packages/common/src/Type.ts:2298
Options for a fallible child Type created by brand or createType.
Properties
path
readonly path: Path;
Defined in: packages/common/src/Type.ts:2313
Locates the child's own error within the validated value.
typeErrorToIssues and Standard Schema validation report the error at this path instead of at the value itself, so a rule spanning several properties, such as a range whose maximum must not be below its minimum, shows its message at one form field. The error itself is unchanged, and inherited errors keep their own paths.
The path names keys of the parent Output, so under objectKeys it names the decoded keys, not the external names.