status "unknown" on response error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- tooling
Research direction
Start in plugins/typescript/src/templates/fetcher.ts at the response-error handling around line 107, using the linked revision as the reference point. Trace how the generated fetcher assigns the status for non-ok responses and confirm the expected value against the issue description. Done means the behavior is clarified or corrected so the generated error status reflects the response status when appropriate.
Written by the indexing model from the issue text.
Description
What's the reason to set status: "unknown" when the response is not ok? From my understanding it should be totally fine to simply use response.status in that case:
- Dominant language
- TypeScript
- Stars
- 634
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from fabien0102/openapi-codegen
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fabien0102/openapi-codegen#343 ·
-
deepMerge mutates its arguments, corrupting request payloads across callsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
fabien0102/openapi-codegen#349 ·
-
Error when migrating to typesrcipt v7Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
fabien0102/openapi-codegen#348 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
fabien0102/openapi-codegen#344 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
fabien0102/openapi-codegen#334 ·
All issues in fabien0102/openapi-codegen
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openzim/mwoffliner#2933 ·
Maintainers usually reply within 1 day
-
Use the README category name for website links and submissionsPossibly taken @dajiaohuang claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
birobirobiro/awesome-shadcn-ui#647 ·
Maintainers usually reply within 2 days
-
check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Urigo/accounter-fullstack#4604 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day