swagger-api / swagger-api/swagger-codegen
FileName too long compiling Oracle SupplyChain json file.
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
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
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the supplied swagger-codegen-cli command, configuration, Oracle OpenAPI URL, and long generated filename. Trace how the Java generator derives that filename; done means the supplied API can generate successfully on the reported platforms without exceeding filesystem path limits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100