Files
dify/web/openapi-ts.config.ts
Stephen Zhou 76cf17c729 Update
2026-01-24 23:19:49 +08:00

25 lines
490 B
TypeScript

import { defineConfig } from '@hey-api/openapi-ts'
import { defineConfig as defineOrpcConfig } from './plugins/hey-api-orpc/config'
export default defineConfig({
input: './open-api/petStore.yaml',
output: './gen',
plugins: [
'@hey-api/typescript',
{
name: 'zod',
requests: true,
responses: true,
metadata: true,
definitions: true,
types: {
infer: true,
},
},
defineOrpcConfig({
output: 'orpc',
}),
],
})