aws-sdk-go icon indicating copy to clipboard operation
aws-sdk-go copied to clipboard

#3711: MarshalMap error

Open BatmanAoD opened this issue 3 years ago • 0 comments

Proposed resolution to #3711.

nil is still marshaled as an empty map, but other types will now return an error.

A slightly more complex variant would be to check that the input type is non-zero, so that e.g. a non-empty list would not cause an error. I'm not convinced that this would be helpful, though.

BatmanAoD avatar Jan 25 '22 21:01 BatmanAoD