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.
Some media-type examples embed large blobs — e.g. GitHub's
repos.create_attestationexample 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), keepingOpSpec.body_exampleslossless. No content sniffing needed: capping leaf length handles base64 automatically while normal prose/URLs pass through. Optionally also cap examples shown per op.