Closed nathanchase closed 1 month ago
https://stackblitz.com/edit/github-hi8a9n?file=nuxt.config.ts
If you add schema to your config and define a Swagger URL, the interceptors are not included on the endpoint.
schema
apiParty: { endpoints: { myApi: { url: 'https://api.mysite.com', schema: 'https://api.mysite.com/swagger/v1/swagger.json' } } }
Without schema:
With schema:
Expected:
Access to interceptors as outlined here: https://nuxt-api-party.byjohann.dev/guide/interceptors.html
No response
Possibly something missing from src/runtime/openapi.ts that is only included in useApiData.ts
Environment
Build Modules: -
Reproduction
https://stackblitz.com/edit/github-hi8a9n?file=nuxt.config.ts
Describe the bug
If you add
schema
to your config and define a Swagger URL, the interceptors are not included on the endpoint.Without
schema
:With
schema
:Additional context
Expected:
Access to interceptors as outlined here: https://nuxt-api-party.byjohann.dev/guide/interceptors.html
Logs
No response