schema-components - v3.7.0
    Preparing search index...

    Type Alias RejectUnrepresentableZod<T>

    RejectUnrepresentableZod: AnyMemberIsUnrepresentable<UnwrapZodWrapper<T>> extends true
        ? UnrepresentableZodSchemaError
        : T

    Reject Zod 4 inputs whose runtime conversion is known to throw.

    • When T (or any inner schema wrapped by ZodOptional, ZodNullable, ZodReadonly, ZodLazy, or ZodPipe) is one of the UnrepresentableZodType variants, the resolved type is UnrepresentableZodSchemaError, which is not assignable from any legitimate Zod / JSON Schema / OpenAPI input — so the prop fails to typecheck.
    • Anything else (Zod 4 schemas that DO convert, JSON Schema literals, OpenAPI documents, unknown for runtime inputs) passes through unchanged.

    Type Parameters

    • T