swagger-api / swagger-api/swagger-codegen-generators
Problems that occur when using --library okhttp4-gson configuration,version:3.0.50
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
Set debug mode, httpClient should not add Interceptor through httpClient.interceptors().add()
Because httpClient.interceptors() returns views that cannot be modified. The specific situation is as follows:
. My solution is:
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 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