Files
dify/web/openapi-ts.config.ts
2026-01-24 23:11:27 +08:00

26 lines
511 B
TypeScript

import { defineConfig } from '@hey-api/openapi-ts'
import { defineConfig as defineOrpcConfig } from './plugins/hey-api-orpc'
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',
generateRouter: true,
}),
],
})