ion-hive-serde icon indicating copy to clipboard operation
ion-hive-serde copied to clipboard

Case insensitive decorator remove() and containsKey() behavior difference.

Open cheqianh opened this issue 3 years ago • 0 comments

Issue was raised https://github.com/amzn/ion-hive-serde/pull/59#discussion_r733971888

In a case insensitive decorator, containsKey(fieldName) returns true once it finds fieldName ignoring cases while remove(fieldName) is not.

So it's possible struct.containsKey("foo") == true while struct.remove("foo") does nothing.

cheqianh avatar Oct 22 '21 21:10 cheqianh