swagger-api / swagger-api/swagger-codegen
[Java] confusion regarding master and 3.0.0
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I am using the maven plugin to build from a swagger json spec.
So my current issue is that in the model I get the "Allof" classes generated. I get why it is done, but since my model has always a single type I was to get rid of those. Thus I am trying to deploy a feature to skip when $ref has only one element.
Is master branch behind 3.0.0? I can build with 3.0.52 but I can't with master and version is 2.x.x, so which one is more recent?
Swagger-codegen version
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
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 comparing the master branch with versions 3.0.0 and 3.0.52 for the Maven plugin and its generated Java models. Reproduce the Swagger JSON generation that creates the Allof classes, then determine whether skipping single-element $ref cases is a defined enhancement and what generated output would count as done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100