Files
dify/web/openapi-ts.config.ts
Stephen Zhou a8693dd2d9 no indexFile
2026-01-24 23:24:23 +08:00

28 lines
529 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: {
indexFile: false,
path: './gen',
},
plugins: [
'@hey-api/typescript',
{
name: 'zod',
requests: true,
responses: true,
metadata: true,
definitions: true,
types: {
infer: true,
},
},
defineOrpcConfig({
output: 'orpc',
}),
],
})