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: dont panic in SetBodyContent when nonJSONContent is nil #75

Closed dpopp07 closed 4 years ago

dpopp07 commented 4 years ago

Fixes a bug in which not setting any body type lead to an attempt to reflect the type of a nil object, which caused a panic. Explicitly handles the case in which all three potential body objects are nil. Adds a test for this case.

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

ibm-devx-automation commented 4 years ago

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

The release is available on GitHub release

Your semantic-release bot :package::rocket: