Bug Report Checklist
Description
Regression between 7.17.1 and 7.18.0 (versions here are the Gradle plugin, I'm not sure what the underlying lib versions are) . Generated clients with kotlin generator and jvm-spring-restclient library now erroneously ignore the basePath values from the Spring RestClient.
Previously if you set a base path as myService/ and host as www.bob.org. A generated API call against POST action would look like:
POST www.bob.org/myService/action
In 7.18.0 the base path is ignored and you get:
Rolling back to 7.17.1 fixes the issue.
OpenAPI declaration file content or url
openApiGenerate {
generatorName = 'kotlin'
inputSpec = "$projectDir/src/main/openapi/${project.name}-openapi.yaml"
outputDir = "$projectDir/build/generated/openapi"
configOptions = [
library : "jvm-spring-restclient",
useSpringBoot3 : "true",
serializationLibrary : "jackson",
omitGradleWrapper : "true",
omitGradlePluginVersions: "true",
]
typeMappings = [
'string+binary': 'Resource'
]
importMappings = [
'Resource': 'org.springframework.core.io.Resource'
]
}
Bug Report Checklist
Description
Regression between
7.17.1and7.18.0(versions here are the Gradle plugin, I'm not sure what the underlying lib versions are) . Generated clients withkotlingenerator andjvm-spring-restclientlibrary now erroneously ignore thebasePathvalues from the SpringRestClient.Previously if you set a base path as
myService/and host aswww.bob.org. A generated API call againstPOST actionwould look like:In
7.18.0the base path is ignored and you get:Rolling back to
7.17.1fixes the issue.OpenAPI declaration file content or url