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

Excluding empty values

Open barnjamin opened this issue 3 years ago • 2 comments

While comparing DryrunRequest output across multiple SDKs, I noticed Go omits some empty values that js/python do not.

Go | JS | Python image

I'm not sure this is a bug or even important but it does make the resulting msgp output different depending on which SDK is being used.

barnjamin avatar Dec 11 '21 15:12 barnjamin

So far we haven't considered re-serialization as part of the API contract. In go you would have access to these objects and they would have the correct zero values.

Do you think it's important that they show up in the re-serialized objects?

winder avatar Sep 29 '22 14:09 winder

Not particularly, just raised it here so it was on the radar

barnjamin avatar Sep 29 '22 14:09 barnjamin