swagger-api / swagger-api/swagger-codegen

Content-Type header charset

Open
#12,219 0 comments 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

When using generated Java client, requestBuilder is using MediaType class
I don't want to add ;charset=utf-8 to the Content-Type header, how can I control the parse method not to add it by default?

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 with the generated Java client's requestBuilder and the MediaType class, then trace the parse method that adds the Content-Type charset. Check how the generated client represents this header and whether existing configuration points are involved. Done means the charset behavior is clearly controllable and covered by the relevant client behavior.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.