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 output: {
7 format: 'prettier',
8 lint: 'eslint',
9 path: './src/client',
10 },
11 plugins: [
12 {
13 name: '@hey-api/client-angular',
14 throwOnError: true,
15 },
16 {
17 exportFromIndex: true,
18 httpRequests: true,
19 httpResources: {
20 asClass: true,
21 },
22 name: '@angular/common',
23 },
24 '@hey-api/schemas',
25 {
26 name: '@hey-api/sdk',
27 responseStyle: 'data',
28 },
29 {
30 enums: 'javascript',
31 name: '@hey-api/typescript',
32 },
33 ],
34});