cloudflare / cloudflare/chanfana

Don't include content if there is nothing but status that return in the response

Open
#118 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
766
Forks
70
Avg merge
25m
Merged PRs (30d)
4

Description

![image](https://github.com/cloudflare/itty-router-openapi/assets/6901435/8e5d6d08-fb82-406b-934e-f9079f69f4aa)
that would be nice if we don't get the empty object has a response content in json file.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Reproduce the generated JSON from the attached image, then locate the response-generation path and identify how status-only responses are represented; done means those responses omit an empty content object while responses with content remain unchanged.

Written by the indexing model from the issue text.

Assessment

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