UNPKG

@kubb/plugin-zod

Version:

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

14 lines (12 loc) 262 B
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import { z } from 'zod' export const toy = z .object({ id: z.string().uuid(), name: z.string().optional(), description: z.string().nullable().nullish(), }) .nullable()