property ConfigPluginOptions.validationSchema

A structural schema (e.g., a Zod schema) for validating configuration at startup. When provided, the schema's parse() is called once after merging and expansion, and the parsed output is stored as the configuration snapshot. This preserves Zod coercions and defaults.

Ignored when ConfigPluginOptions.instance is set — the supplied snapshot has already been through whatever validation produced it.

Type

Usage

import { type ConfigPluginOptions } from "config-plugin/src/index.ts";