swagger-api / swagger-api/swagger-codegen
V3 fails to create concrete implementations of "Any-Interface" in Java
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I try to auto-create a client for https://swagger.octobrowser.net/?urls.primaryName=Server+Auto+API. The generator fails to create the following correctly:
An interface class gets created
However, no concrete implementation of those classes are created. As a consequence, also invalid JAVA-classes are generated with missing default value (This should be an empty string).
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 generation from the linked Swagger document and inspect the generated Java interfaces and classes shown in the report. Trace how Any-Interface schemas are handled and determine the expected concrete implementations and default string values; done means the generated Java client is valid and includes those implementations.
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
- Mostly clear
- Newbie friendliness
- 35/100