swagger-api / swagger-api/swagger-codegen

V3 fails to create concrete implementations of "Any-Interface" in Java

Open
#12,520 1 comment 0 reactions 0 assignees View on GitHub

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:

Image

An interface class gets created

Image

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).

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.