Skip to content

docs(plugin-ts,axios,fetch): document the comments option - #174

Merged
stijnvanhulle merged 4 commits into
mainfrom
claude/output-size-reduction-nsjj5o
Aug 13, 2026
Merged

docs(plugin-ts,axios,fetch): document the comments option#174
stijnvanhulle merged 4 commits into
mainfrom
claude/output-size-reduction-nsjj5o

Conversation

@stijnvanhulle

@stijnvanhulle stijnvanhulle commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🎯 Changes

Documents the new comments option added in kubb-labs/plugins#747, across the three plugin option references that now carry it.

comments controls how much of each OpenAPI description reaches the generated JSDoc:

  • 'full' (default) emits every description in full, so upgrading changes nothing about generated output
  • 'brief' keeps the opening sentence
  • 'none' emits no JSDoc, leaving the generated-by banner untouched

Pages updated:

  • plugins/plugin-ts/reference/options.md — full entry with a ::: code-group showing the same property rendered at all three levels, placed beside the other scalar options (syntaxType, optionalType, arrayType)
  • plugins/plugin-axios/reference/options.md and plugins/plugin-fetch/reference/options.md — prose entries matching those pages' existing style

All three pages were missing a comments row in their option table at the top, so this adds one.

Each entry spells out how a long description is handled at 'brief': a sentence is kept whole up to 150 characters, and one that never finishes is cut at the last word before 120, backing off further rather than leaving a markdown link or code span half written.

The plugin-ts page carries the reasoning for opting in: descriptions are a third of what Kubb writes on a large spec, so 'brief' trims ~197 KB and 'none' ~1 MB of a 2.76 MB output.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I am using USA English (serialize, color, center, canceled, analyze, license).
  • I ran the humanizer check on any new documentation I wrote.

🤖 Generated with Claude Code

https://claude.ai/code/session_019QYdRKpk7zCy1XVbydevXf


Generated by Claude Code

Adds the `comments` option to the three plugin option references, with
its 'brief' default and the reasoning behind it: descriptions are where
the bytes go on a large spec, so the default keeps the opening sentence
and 'full' restores the previous output.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QYdRKpk7zCy1XVbydevXf
@changeset-bot

changeset-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9f85f37

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

claude added 3 commits August 11, 2026 18:02
Drops a clause semicolon from the axios and fetch entries, and rewrites
the plugin-ts sentence that managed to say "description" twice about the
OpenAPI description of the OpenAI API.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QYdRKpk7zCy1XVbydevXf
Brief no longer caps every description at 120. A sentence is kept whole up to
150, and a cut that would leave a markdown link or code span half written backs
off. The saving on the OpenAI spec is 197 KB rather than 199 KB.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QYdRKpk7zCy1XVbydevXf
The default moved from brief to full so upgrading changes nothing about
generated output. Reordered each entry to lead with full, relabeled the
plugin-ts code group, and added the missing comments row to all three option
tables.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QYdRKpk7zCy1XVbydevXf
@stijnvanhulle
stijnvanhulle merged commit d08af4b into main Aug 13, 2026
1 check passed
@github-actions
github-actions Bot deleted the claude/output-size-reduction-nsjj5o branch August 13, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants