Skip to main content
Version: 0.24

Type Alias: ZodSchema

ZodSchema = object

Structural type for a runtime Zod schema accepted by Wasp env validation fields.

Use reference imports when passing values from your app into the Wasp spec. If a direct import is not practical, use ref as a fallback.

See Server.envValidationSchema and Client.envValidationSchema for examples.

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