effect-io-ai

Package: effect
Module: Schema

Schema.Annotations.Key

Annotations for struct property schemas. Extends Documentation with an optional messageMissingKey to override the error message when the property key is absent during decoding.

Signature

export interface Key<T> extends Documentation<T> {
    /**
     * The message to use when a key is missing.
     */
    readonly messageMissingKey?: string | undefined
  }

Source

Since v4.0.0