OpenAPITools / OpenAPITools/openapi-generator
[JavaJaxrsResteasy] #1423 was fixed in 3.3.3 but not in 3.3.4
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- What's the version of OpenAPI Generator used?
- Have you search for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Bounty to sponsor the fix (example)
Description
Issue #1423 was fixed in 3.3.3 with PR #1426.
We updated the generator to 3.3.4 and the issue occurs again.
openapi-generator version
3.3.4
OpenAPI declaration file content or url
cf open attached file.
Command line used for generation
java -jar ./openapi-generator-cli-3.3.4.jar generate -i yaml/TS29510_Nnrf_NFManagement.yaml -g jaxrs-resteasy -o generated-files-3.3.4
Steps to reproduce
1 - unzip the attached file
2 - copy the openapi-generator-cli-3.3.3.jar and openapi-generator-cli-3.3.4.jar files into the directory openapitools-generator-#2089
3 - go to openapitools-generator-#2089 directory
4 - generate the source code files with openapi-generator-cli-3.3.3.jar file
java -jar ./openapi-generator-cli-3.3.3.jar generate -i yaml/TS29510_Nnrf_NFManagement.yaml -g jaxrs-resteasy -o generated-files-3.3.3
5 - generate the source code files with openapi-generator-cli-3.3.4.jar file with same yaml files as above
java -jar ./openapi-generator-cli-3.3.4.jar generate -i yaml/TS29510_Nnrf_NFManagement.yaml -g jaxrs-resteasy -o generated-files-3.3.4
6 - Do a diff about generated model files between both output directories generated-files-3.3.3\generated-files-3.3.4\src\gen\java\org\openapitools\model\ and generated-files-3.3.4\generated-files-3.3.4\src\gen\java\org\openapitools\model.
The generated java class file LinksValueSchema.java misses in generated-files-3.3.4.
Related issues/PRs
#1423
Suggest a fix
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 with the attached TS29510_Nnrf_NFManagement.yaml and the jaxrs-resteasy generation command, then compare the generated model files from versions 3.3.3 and 3.3.4. Investigate why LinksValueSchema.java is absent from the 3.3.4 output; done means the model is generated consistently with the fixed 3.3.3 result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100