Skip to content

Commit fadb826

Browse files
committed
add zod checks
1 parent 8a91cfe commit fadb826

File tree

7 files changed

+284
-268
lines changed

7 files changed

+284
-268
lines changed

openapi-ts.config.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
import { defaultPlugins } from '@hey-api/openapi-ts';
12
import { defineConfig } from '@hey-api/openapi-ts';
23

34
export default defineConfig({
4-
input: 'https://raw.githubusercontent.com/lazydynamics/RxInferServer/refs/heads/main/openapi/spec.yaml',
5-
output: 'src/client',
6-
plugins: ['@hey-api/client-fetch'],
5+
input: 'https://raw.githubusercontent.com/lazydynamics/RxInferServer/refs/heads/main/openapi/spec.yaml',
6+
output: 'src/client',
7+
plugins: [
8+
...defaultPlugins,
9+
'@hey-api/client-fetch',
10+
'zod',
11+
{
12+
name: '@hey-api/sdk',
13+
validator: true,
14+
}
15+
],
716
});

0 commit comments

Comments
 (0)