Bug Report Checklist
Description
After the refactoring made in #20681, the generated API controller services no longer define basePath on their own, but inherit it from the new BaseService.
Before:
export class DemoService {
protected basePath = '/my/api/base/path';
// ...
}
Template:
|
protected basePath = '{{{basePath}}}'; |
After:
export class DemoServie extends BaseService {
// ...
}
export class BaseService {
protected basePath = '';
// ...
}
Template (now hard-coded as ''):
openapi-generator version
7.12.0
OpenAPI declaration file content or url
openapi: 3.0.1
info:
title: demo
version: "1.0"
servers:
- url: /my/api/base/path
paths:
/relative/path:
get:
tags:
- demo
responses:
"200":
description: OK
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Bug Report Checklist
Description
After the refactoring made in #20681, the generated API controller services no longer define
basePathon their own, but inherit it from the newBaseService.Before:
Template:
openapi-generator/modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache
Line 64 in a7240ee
After:
Template (now hard-coded as
''):openapi-generator/modules/openapi-generator/src/main/resources/typescript-angular/api.base.service.mustache
Line 6 in afc27ef
openapi-generator version
7.12.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix