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) 341 B
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import { z } from 'zod' /** * @description Tuple of exact length 2 nested in an object */ export const petTupleObject = z .object({ tupleProperty: z.tuple([z.string(), z.string()]).optional(), }) .describe('Tuple of exact length 2 nested in an object')