swagger-api / swagger-api/swagger-codegen

[Typescript-Node] mime type text/event-stream not handled properly

Open
#6,193 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: TypeScript General: Suggestion
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Client generated for mime type text/event-stream is using Promises, should be using a stream handler.

Swagger-codegen version

I'm using editor.swagger.io.

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

The issue names the TypeScript-Node client generator but no source files or tests. Start by tracing how the generator handles the text/event-stream MIME type, compare the generated Promise client with the expected stream handler, and verify that generated clients use streaming for this MIME type.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.