OpenAPITools / OpenAPITools/openapi-generator
[BUG] [Typescript-Angular] Regression basePath property is ignored
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
I run the generator through the maven plugin with the following settings:
<configuration>
<inputSpec>${project.build.directory}/openapi/api.yaml</inputSpec>
<generatorName>typescript-angular</generatorName>
<output>${project.basedir}/generated-sources</output>
<configOptions>
<fileNaming>kebab-case</fileNaming>
<ngVersion>19.0.0</ngVersion>
<npmName>***redacted***</npmName>
<npmVersion>19.0.0</npmVersion>
<npmRepository>*****redacted***
</npmRepository>
<snapshot>true</snapshot>
</configOptions>
<additionalProperties>basePath=</additionalProperties>
</configuration>
openapi-generator version
Up to version 7.12.0 this sets the basePath in the generated code to an empty string. As of 7.13 this seems to be ignored and the basePath is set to http://localhost.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the typescript-angular generator's basePath and additionalProperties handling, using the Maven plugin configuration in the report as the reproduction entry point. Compare generated output from versions 7.12.0 and 7.13; the work is done when basePath= again produces an empty base path rather than http://localhost.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, java, openapi, typescript
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100