mirror of
https://github.com/langgenius/dify.git
synced 2026-02-22 19:15:47 +08:00
28 lines
529 B
TypeScript
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',
|
|
}),
|
|
],
|
|
})
|