swagger-api / swagger-api/swagger-codegen
Incorrect models generated when allOf tag is used
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Models defined with nested models using the allOf tag are not generated correctly.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
gist here
Command line used for generation
Steps to reproduce
- Paste gist contents into editor.swagger.io
- Click generate server
- Open
petmodel file in downloaded project - Note missing category and tag properties
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
Reproduce the issue by pasting the linked gist into editor.swagger.io, generating a server, and inspecting the downloaded pet model file. Compare the generated model with the nested allOf definition; done means the category and tag properties are present.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100