Bug Report Checklist
Description
When trying to generate .java files from Unleash OpenAPI specs (file attached), I get errors using OpenAPI Generator with java native library. It seems that it generates the method names that are not valid for Java syntax. I use java native because I want the client to be java.net.http.HttpClient.
Command I use:
openapi-generator generate -i unleash.openapi.json -g java -o test --additional-properties=serializationLibrary=jackson,library=native
Example error I get when I try to compile the code:
.../AdvancedPlaygroundRequestSchemaProjects.java:228: error: unexpected token: <
public List<String> getList<String>() throws ClassCastException {
^
Multiple files have this issue.
openapi-generator version
7.17.0
OpenAPI declaration file content or url
unleash.openapi.json
Bug Report Checklist
Description
When trying to generate
.javafiles from Unleash OpenAPI specs (file attached), I get errors using OpenAPI Generator with javanativelibrary. It seems that it generates the method names that are not valid for Java syntax. I use java native because I want the client to bejava.net.http.HttpClient.Command I use:
openapi-generator generate -i unleash.openapi.json -g java -o test --additional-properties=serializationLibrary=jackson,library=nativeExample error I get when I try to compile the code:
Multiple files have this issue.
openapi-generator version
7.17.0
OpenAPI declaration file content or url
unleash.openapi.json