9fc971c1d2
Generate Zod schemas alongside the typed client (src/client/zod.gen.ts), picking up the OpenAPI field defaults. Enables runtime validation and default-filling for form payloads. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
import { defineConfig } from '@hey-api/openapi-ts';
|
|
|
|
export default defineConfig({
|
|
input: '../broker/jfjoch_api.yaml',
|
|
output: {
|
|
path: 'src/client',
|
|
},
|
|
plugins: [
|
|
'@hey-api/client-fetch',
|
|
{
|
|
name: '@hey-api/typescript',
|
|
case: 'preserve',
|
|
enums: { mode: 'javascript' },
|
|
},
|
|
'@hey-api/sdk',
|
|
'@tanstack/react-query',
|
|
'zod',
|
|
],
|
|
});
|