UNPKG

@kubb/plugin-zod

Version:

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

15 lines (13 loc) 308 B
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import type { ToZod } from '@kubb/plugin-zod/utils' import { z } from 'zod' export const pets = z.array( z.object({ id: z.number().int(), name: z.string(), tag: z.string().optional(), }), ) as unknown as ToZod<Pets>