Bug Report Checklist
Description
openapi-generator version
7.15.0
openapi-generator-maven-plugin
Steps to reproduce
- Define any OpenAPI service.
- Use the following config in your pom.xml:
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>7.15.0</version>
<executions>
<execution>
<id>generate-my-api-client</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<library>resttemplate</library>
<httpUserAgent>${project.name}/${project.version}</httpUserAgent>
...
Related issues/PRs
Suggest a fix
Going to prepare a PR now
Bug Report Checklist
Actual: when generating API client with RestTemplate library and custom User-Agent in xml configuration, generated API client has hardcoded User-Agent.
Expected: when custom User-Agent is set, the API client uses it.
Description
openapi-generator version
7.15.0
openapi-generator-maven-plugin
Steps to reproduce
Related issues/PRs
Suggest a fix
Going to prepare a PR now