Bug Report Checklist
Description
openapi-generator version
7.3.0-snapshot
if (_response.body.isNotEmpty && _response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(_response),
'OutputFormat',
) as OutputFormat;
}
the .body method implicitly converts to utf-8, which will throw exceptions when the data isn't a utf-8 string. Instead, when checking for emptiness, .bodyBytes should be used instead.
Bug Report Checklist
Description
openapi-generator version
7.3.0-snapshot
the
.bodymethod implicitly converts to utf-8, which will throw exceptions when the data isn't a utf-8 string. Instead, when checking for emptiness,.bodyBytesshould be used instead.