Files
Jungfraujoch/frontend/openapi-ts.config.ts
T
leonarski_f 9fc971c1d2 frontend: add zod plugin to hey-api openapi-ts
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>
2026-06-19 07:24:52 +02:00

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',
],
});