Remix
Remix
remix/data-schema · FunctionView Source

createIssue

Summary

Creates a Standard Schema issue object.

Signature

function createIssue(
  message: string,
  path: readonly (PropertyKey | PathSegment)[] | undefined,
): Issue;

Parameters

message

Human-readable validation message.

path

Optional issue path within the input value.

Returns

A Standard Schema issue.