Closed JunliWang closed 7 years ago
@JunliWang You should report this on StackOverflow. It does look like an API inconsistency that should be fixed in relation to statically-typed languages like Go and Java.
SL ticket is opened: https://control.softlayer.com/support/tickets/44024463
Closing this as it has been identified a bug on the API itself.
if a volume is a primary block volume, replicationStatus is a string, if volume is a replicant, then replicationStatus is a struct, see below data:
I'm not sure whether this is an inconsistency in API implementation or it is designed in this way, but need a way to avoid this error, suggest to change the type to json.RawMessage, and client can unmarshal it accordingly.