fork of hey-api/openapi-ts because I need some additional things
at main 31 lines 708 B view raw
1// https://nuxt.com/docs/api/configuration/nuxt-config 2export default defineNuxtConfig({ 3 compatibilityDate: '2024-11-01', 4 devtools: { 5 enabled: true, 6 }, 7 future: { 8 compatibilityVersion: 4, 9 }, 10 heyApi: { 11 config: { 12 input: 13 'https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml', 14 plugins: [ 15 '@hey-api/schemas', 16 { 17 name: '@hey-api/sdk', 18 transformer: true, 19 validator: true, 20 }, 21 { 22 enums: 'javascript', 23 name: '@hey-api/typescript', 24 }, 25 '@hey-api/transformers', 26 'zod', 27 ], 28 }, 29 }, 30 modules: ['@hey-api/nuxt'], 31});