Hyperlinkv0.8.0-beta.28

Schema

Schema.StandardSchemaV1FailureResultconsteffect/Schema.ts:11807
Struct<{
  readonly issues: $Array<
    Struct<{
      readonly message: String
      readonly path: optional<
        $Array<
          Union<
            readonly [
              Union<readonly [Finite, Symbol, String]>,
              Struct<{
                readonly key: Union<readonly [Finite, Symbol, String]>
              }>
            ]
          >
        >
      >
    }>
  >
}>

Schema for a Standard Schema v1 failure result.

Details

The result contains an issues array where each issue has a message and an optional path made of property keys or keyed path segments.

Standard Schema
export const StandardSchemaV1FailureResult = Struct({
  issues: ArraySchema(Struct({
    message: String,
    path: optional(ArraySchema(Union([PropertyKey, Struct({ key: PropertyKey })])))
  }))
})