fork of hey-api/openapi-ts because I need some additional things
at main 24 lines 530 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 output: { 7 format: 'prettier', 8 lint: 'eslint', 9 path: './src/client', 10 }, 11 plugins: [ 12 '@hey-api/client-fetch', 13 '@hey-api/schemas', 14 { 15 instance: true, 16 name: '@hey-api/sdk', 17 }, 18 { 19 enums: 'javascript', 20 name: '@hey-api/typescript', 21 }, 22 '@tanstack/react-query', 23 ], 24});