Skip to content

bytes-response-replacement-without-body

Id
@azure-tools/typespec-java/bytes-response-replacement-without-body

Severity: warning

This warning is issued when replaceResponseWithBytes targets an operation with no declared HTTP response body.

The emitter cannot fabricate response bytes. It ignores the response type override and preserves the original response type in all Java flavors.

Remove the bytes replacement, or declare the HTTP response body if the service actually returns one.

Suppressing this warning does not enable the replacement; the original response type is still used.