swagger-api / swagger-api/swagger-codegen
[JAVA] [3.0.14] swagger-codegen erroneously encodes = chars in Headers
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Source Swagger
"produces": ["application/json; charset=utf-8"],
Java/Feign Output
@Headers({
"Content-Type: application/json; charset=utf-8"
})
The above behaviour is not desirable. The downstream service (a javascript service) did not decode the = chars in the headers and failed to produce a valid response.
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
Reproduce the issue from the shown Swagger produces value and inspect the generated Java/Feign header output. Trace where the equals sign becomes an encoded entity in the code-generation path or template, then verify that generated headers preserve the literal equals sign and produce a valid downstream response.
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
- 25/100