Stream: implementers
Topic: Misrepresented % value for decimal data type
Mona O (Jun 10 2021 at 21:31):
We recently discovered that our percentage data value is not being returned in the correct decimal form for an element with the data type of decimal (35.00 is being returned instead of 0.35). We realize we are not conforming to the decimal data type for representing a percentage, but we already have consumers integrated with the resource who have never mentioned this. Are there any strategies to represent the correct decimal value for new consumer who are currently integrating while not impacting existing consumers and providing them the appropriate amount of time to make the necessary changes on their end?
Lloyd McKenzie (Jun 11 2021 at 03:29):
You could return different data to different users based on what you think they expect (though I'd make very certain you don't make any mistakes). Other possibility is to set up a distinct endpoint that systems migrate to to get the 'correct' data.
Last updated: Apr 12 2022 at 19:14 UTC