mirror of
https://github.com/langgenius/dify.git
synced 2026-04-22 11:47:40 +08:00
26 lines
511 B
TypeScript
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,
|
|
}),
|
|
],
|
|
})
|