IBM / go-sdk-core

The go-sdk-core repository contains core functionality required by Go code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
30 stars 24 forks source link

fix: handle missing response body #111

Closed padamstx closed 3 years ago

padamstx commented 3 years ago

This PR contains changes to the BaseService.Request() function to handle scenarios where we expect a response body for an operation invocation but one was not returned by the server. This might occur in situations where an operation could return multiple success status codes, some with and some without a response body (think 202 with a response body and a 204 without a response body). This new behavior aligns with the current behavior of the Java core where a null result object would be returned to the SDK user if a response was expected but no response body was received.

ibm-devx-sdk commented 3 years ago

:tada: This PR is included in version 5.4.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: