UNPKG

@kubb/plugin-zod

Version:

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

16 lines (14 loc) 252 B
/** * Generated by Kubb (https://kubb.dev/). * Do not edit manually. */ import { z } from 'zod' export const test = z.union([ z.object({ propertyA: z.string(), }), z.object({ propertyA: z.string(), propertyB: z.string(), }), ])