openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
Import Core path
I use multiple opeapi schemes from different urls
To avoid duplicate ./src/api-generated/${scheme}/core directory for each api provider, I generate core separately
1. --output ./src/api-generated/core --exportServices false --exportModels false
2. --output ./src/api-generated/audio --exportCore false
3. --output ./src/api-generated/web --exportCore false
but In all generated services i get
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
I would like to be able to specify the directory from which it will be imported, maybe with flag --importCorePath, although we might also need to change the OpenAPI settings for a specific provider separately
@focus-at this is solved in https://github.com/hey-api/openapi-ts + this package is no longer maintained, so I'd encourage you to migrate if possible 🚀