Bug Report Checklist
Description
When generating typescript-axios code from openapi, base.ts file contains the following code:
export class BaseAPI {
protected configuration: Configuration | undefined;
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath ?? basePath;
}
}
};
However that code is not compatible with erasableSyntaxOnly because of the scope protected on the constructor parameter.
Looks like the option was introduced here: b0172a5
But that was not implemented for typescript-axios generator
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Bug Report Checklist
Description
When generating typescript-axios code from openapi,
base.tsfile contains the following code:However that code is not compatible with erasableSyntaxOnly because of the scope
protectedon the constructor parameter.Looks like the option was introduced here: b0172a5
But that was not implemented for
typescript-axiosgeneratoropenapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix