Skip to content

PolicySchema

const PolicySchema: ZodObject<{ handler: ZodFunction<$ZodFunctionArgs, $ZodFunctionOut>; name: ZodString; priority: ZodOptional<ZodNumber>; }, $strip>

Defined in: src/config/schema.ts:33

Validates the Policy shape (name + handler + priority).

This only checks that a policy looks like a Policy - it does not validate the policy’s own config options. Policy-specific validation happens inside each policy factory via resolveConfig() at construction time.