3.88.0
(fix): With respectOptionalRequestBody enabled, examples that omit an optional request body are no
longer dropped from the generated reference, snippets, and docs comments.
(feat): Add respectOptionalRequestBody. With it enabled, an endpoint whose request body the API does
not require takes an optional body parameter — refund(id: string, request?: RefundRequest) —
keeping the body’s own type rather than widening it to RefundRequest | undefined, and sending
no body when the caller omits it. Examples that supply no body render as client.refund(id),
and the generated wire test for such an example no longer asserts a request body. Defaults to
false, so signatures and snippets are unchanged until you opt in.