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

Retrofit2 Accept Header not set

Open
#614 1 comment 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

If one generates a Retrofit2 client from the PET Store example, there is no Accept header set. This leads, at least for Spring based backends, to problems, since the accept header ist mandatory.

I don't know if i'm wrong, since retrofit2 is a popular framework and i think someone has to have the same issue?

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 generating the Retrofit2 client from the PET Store example and inspect how request headers are produced. Compare the generated requests with the Spring backend requirement, then verify that the expected Accept header is present in the generated client.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
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.