interface-forge - v2.5.0
    Preparing search index...

    Class ZodSchemaGenerator

    Schema generator class that handles recursive generation of values from any ZodType. This class is responsible for all the complex schema traversal and generation logic.

    Index

    Constructors

    Properties

    factory: ZodFactory<never>

    Methods

    • Generate a value from any ZodType schema.

      Parameters

      • schema: ZodType
      • currentDepth: number = 0

      Returns unknown

      The generated value

    • Register a custom handler for a specific Zod type.

      Parameters

      Returns this

      The factory instance