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

Problems that occur when using --library okhttp4-gson configuration,version:3.0.50

Open
#1,206 5 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

The version I'm using is:3.0.50
image

Set debug mode, httpClient should not add Interceptor through httpClient.interceptors().add()

image

Because httpClient.interceptors() returns views that cannot be modified. The specific situation is as follows:

image
image
image

. My solution is:
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 locating the generated okhttp4-gson client code used in debug mode and review how the HTTP client's interceptor collection is updated. Reproduce the reported configuration problem and compare it with the solution shown in the issue; done means debug mode works without modifying the unmodifiable interceptor view.

Written by the indexing model from the issue text.

Assessment

Domain
api
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.