@kubb/plugin-zod
Version:
Zod schema generator plugin for Kubb, creating type-safe validation schemas from OpenAPI specifications for runtime data validation.
23 lines (18 loc) • 552 B
text/typescript
/**
* Generated by Kubb (https://kubb.dev/).
* Do not edit manually.
*/
import { z } from 'zod'
export const showPetByIdPathParams = z.object({
petId: z.string().describe('The id of the pet to retrieve'),
testId: z.string().describe('The id of the pet to retrieve'),
})
/**
* @description Expected response to a valid request
*/
export const showPetById200 = z.lazy(() => pet)
/**
* @description unexpected error
*/
export const showPetByIdError = z.lazy(() => error)
export const showPetByIdQueryResponse = z.lazy(() => showPetById200)