OpenAPITools / OpenAPITools/openapi-generator
[BUG] typescript-rxjs cannot handle regular form params(application/x-www-form-urlencoded)
Nobody has claimed this yet.
- 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
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 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