Skip to main content
Version: Next

Type Alias: ZodSchema

ZodSchema = object

Structural type for a runtime Zod schema.

Env schemas imported with reference imports are lowered to ExtImport objects before mapping, but the public API still accepts runtime Zod objects in server.envValidationSchema and client.envValidationSchema.

To avoid depending on the zod package, Wasp structurally recognizes Zod 4 schemas via their documented library-author marker. See https://zod.dev/library-authors.

Properties

_zod

readonly _zod: object

def

readonly def: object