Truncate long string leaves when rendering body examples
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start at _examples_doc from #30 and trace how it renders OpSpec.body_examples. Recursively cap string leaves at roughly 100 characters while keeping OpSpec.body_examples lossless; verify that long embedded blobs are shortened and ordinary prose or URLs remain unchanged.
Written by the indexing model from the issue text.
Description
Some media-type examples embed large blobs — e.g. GitHub's repos.create_attestation example is ~10KB of base64 (canonicalizedBody, rawBytes, payload), bloating __doc__ for LLM consumption.
Follow-up: in _examples_doc (from #30), recursively cap string leaves at render time (e.g. >~100 chars → prefix…+N chars), keeping OpSpec.body_examples lossless. No content sniffing needed: capping leaf length handles base64 automatically while normal prose/URLs pass through. Optionally also cap examples shown per op.
- Dominant language
- Jupyter Notebook
- Stars
- 5
- Forks
- 4
- Avg merge
- 2d 47m
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
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 AnswerDotAI/fastspec
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AnswerDotAI/fastspec#32 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AnswerDotAI/fastspec#31 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
AnswerDotAI/fastspec#8 · 1 comment ·
All issues in AnswerDotAI/fastspec
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100