swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

FileName too long compiling Oracle SupplyChain json file.

Open fastcars opened this issue 2 years ago • 0 comments

Attempting to compile oracle supply chain swagger file

https://docs.oracle.com/en/cloud/saas/supply-chain-and-manufacturing/23c/fasrp/openapi.json

using config { "apiPackage": "com.company.oraclefin.supplychain.pojo", "modelPackage" : "com.company.oraclefin.supplychain.model", "groupId": "company.financials", "artifactVersion": "sep-2023-jakarta", "language" : "java", "artifactId" : "OracleFinancialsSuppyChainApi", "jakarta" : "true", "library": "jersey3" }

from command line

java -jar swagger-codegen-cli-3.0.46.jar generate -i C:\Users\extmmm\src\oracle-fusion\oracleSupplyChain.json -l java -o outsupplyChain -c C:\Users\EXTMCDONB\src\oracle-fusion\confSupplyChain.json

And error is image

Basically the filename generated is too long. Now this did work on an older version of code gen, but i now need a jakarta namespace version of the the oracle API's. When I saw worked, codegen completed generation, but it did fail to compile in 6-10 places which I kludged as I dont need access to those elements of oracle. I use this as part of a web app that generates invoices in oracle, the Suply Chain jar I generate is used for loading pricing strategies from oracle.

Using corretto JDK 17, windows 10 Linux has a filename length limit of 255, windows 260 chars

Filename it failed on ProductLifecycleManagementProductChangeOrdersVersion2ChangeOrderAffectedObjectsChangeOrderAffectedItemStructuresChangeOrderAffectedItemStructureComponentsChangeOrderAffectedItemReferenceDesignatorsChangeOrderAffectedItemReferenceDesignatorDescriptiveFlexfieldsApi.java

Any ideas on a solution here?

fastcars avatar Sep 08 '23 05:09 fastcars