OpenAPITools / OpenAPITools/openapi-generator
TypeScript Fetch Generator
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- I have a question about the typescript fetch generator. In the YAML API Definition, i have the following block :
{
"name": "file",
"in": "formData",
"description": "The file",
"required": false,
"type": "file"
}
The generator map the formData with Blob structure :
export interface postResquest {
file?: Blob;
}
But I have no idea to create a Blob struture. Can you hep me ?
I use NodeJS v18.
Thanks
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 with the TypeScript fetch generator and the generated interface shown in the report; compare the YAML API definition's formData file parameter with Node.js v18 Blob behavior. Done means determining whether the generated Blob mapping is correct and documenting or reproducing the supported way to pass the file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, openapi, typescript
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100