You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
After upgrading from v7.6.0 to v7.7.0, we have noticed that the generated code is invalid.
The generated model class has an import of a class ApiClient which is not generated.
The generated model class has a function toUrlQueryString(String) that uses a static function valueToString from the class ApiClient which is not generated.
The old code was
sephiroth-j
changed the title
[BUG][JAVA] Invalid code generated: ApiClient is referred but not present
[BUG][JAVA] Invalid code generated: non-existend ApiClient is referred in toUrlQueryString
Jul 11, 2024
sephiroth-j
changed the title
[BUG][JAVA] Invalid code generated: non-existend ApiClient is referred in toUrlQueryString
[BUG][JAVA] Invalid code generated: non-existent ApiClient is referred in toUrlQueryString
Jul 11, 2024
Bug Report Checklist
Description
After upgrading from v7.6.0 to v7.7.0, we have noticed that the generated code is invalid.
ApiClient
which is not generated.toUrlQueryString(String)
that uses a static functionvalueToString
from the classApiClient
which is not generated.The old code was
The new code is
openapi-generator version
7.7.0
OpenAPI declaration file content or url
Generation Details
language: java
library: native
Steps to reproduce
src/main/openapi/demo.yaml
mvn generate-sources
target/generated-sources/openapi/de/demo/DemoGet200Response.java
Related issues/PRs
seems to be a regression from #18743
https://github.com/OpenAPITools/openapi-generator/pull/18743/files#diff-2eefc7a98c8e6aff3fa4589d8f2c364e7214c35e98806786e8dae207c42352df
Workaround
Set
supportUrlQuery
tofalse
whentoUrlQueryString
is not needed.The text was updated successfully, but these errors were encountered: