OpenAPITools / OpenAPITools/openapi-generator
[BUG][JAVA] - "ref" not works in open API code generator warn- o.o.codegen.utils.ModelUtils - #/../../../../.. is not defined.
Open
Nobody has claimed this yet.
Issue: Bug
- 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) - Yes in swagger no issues found
- Have you tested with the latest master to confirm the issue still exists? - yes i used 7.4.0 cli version
- Have you searched for related issues/PRs? - yes
- What's the actual output vs expected output? - models should able generate when we use ref in yaml file
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
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 by reproducing the warning with the openapi-generator 7.4.0 CLI and an OpenAPI YAML file containing the reported ref. Then trace the warning from ModelUtils and compare the generated models with the expected output; done means valid models are generated without the undefined-reference warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100