2.20.1
(fix): Render an empty body in snippets for an example that omits a request body the API does not
require. The generated request wrapper still requires the body, so the snippet left the
required key out and did not typecheck.
2.20.0
(feat): Add a respectOptionalRequestBody option. When enabled, an endpoint whose request body the API
does not require lets the caller leave that body out of the call, and such a call sends neither a
body nor a Content-Type header. refund(string $id, RefundRequest $request) becomes
refund(string $id, ?RefundRequest $request = null), and a body carried in a request wrapper
becomes an omittable property, so new RefundWithHeaderRequest([]) no longer throws. Snippets
that supply no body render as $client->bulkRefund();. The option defaults to false, so existing
signatures, output, and snippets are unchanged.