fork of hey-api/openapi-ts because I need some additional things
1import { defineConfig } from '@hey-api/openapi-ts';
2
3export default defineConfig({
4 input:
5 'https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml',
6 logs: {
7 path: './logs',
8 },
9 output: {
10 path: './src/client',
11 postProcess: ['oxfmt', 'eslint'],
12 },
13 plugins: [
14 '@hey-api/client-ofetch',
15 '@hey-api/schemas',
16 '@hey-api/sdk',
17 {
18 enums: 'javascript',
19 name: '@hey-api/typescript',
20 },
21 ],
22});