fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 37 lines 795 B view raw
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 { 15 name: '@hey-api/client-angular', 16 throwOnError: true, 17 }, 18 { 19 httpRequests: true, 20 httpResources: { 21 containerName: '{{name}}ServiceResources', 22 strategy: 'byTags', 23 }, 24 includeInEntry: true, 25 name: '@angular/common', 26 }, 27 '@hey-api/schemas', 28 { 29 name: '@hey-api/sdk', 30 responseStyle: 'data', 31 }, 32 { 33 enums: 'javascript', 34 name: '@hey-api/typescript', 35 }, 36 ], 37});