import type * as z from 'zod/v4'; export const validateJson = ( input: string, schema: T, ): z.infer => schema.parse(JSON.parse(input));