UNPKG

@kubb/plugin-zod

Version:

Zod schema generator plugin for Kubb, creating type-safe validation schemas from OpenAPI specifications for runtime data validation.

11 lines (9 loc) 201 B
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import { z } from 'zod' export const example = z.object({ name: z.string(), children: z.array(z.lazy(() => example)), })