swagger-api / swagger-api/swagger-codegen-generators

[okhttp-gson] GSON config does not include discriminator type adapters

Open
#122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
299
Forks
439
PR merge metrics
No merged PRs in 30d

Description

Hi!

2.x implementation sets up adapters based on discriminator. The new one does not.
Is it made on purpose?

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

Compare the referenced 2.x Java JSON.mustache implementation with the newer modules/swagger-codegen-generators/src/main/resources/v2/Java/libraries/okhttp-gson/JSON.mustache template. Start at the linked discriminator adapter setup and determine whether its absence is intentional; done means the template behavior is clarified and aligned with the intended implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.