OpenAPITools / OpenAPITools/openapi-generator

[BUG] typescript-rxjs cannot handle regular form params(application/x-www-form-urlencoded)

Open
#5,432 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

similar to typescript-fetch #3920
it always use FormData without check api doc "consumes"
application/x-www-form-urlencoded should be default content-type
FormData should be used only if api doc specific consumes=multipart/form-data
probably other client generator have the same problem too

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 at the typescript-rxjs generator and compare its form-parameter handling with the related typescript-fetch issue #3920. Trace how the API document's consumes value is checked. Done means application/x-www-form-urlencoded uses regular form parameters by default, while FormData is used only for multipart/form-data.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.