3 ms·
Why not accept map keys as nullable similar to what non-required fields in protobuf do? Wouldn't arrays open you up to duplication? More broadly, I'm intereste
by echelon 3y ago
Why not accept map keys as nullable similar to what non-required fields in protobuf do? Wouldn't arrays open you up to duplication?
More broadly, I'm interested in sparse field updates vs. full payload updates and how each of these handle nullable / emptyable fields. I haven't seen any protocol or standard handle these well.
- withinboredom 3y agoAllow me to introduce you to RFC6902[1]. A standard of how to update without sending the whole thing. There are libraries for almost every language as well. [1]: https://datatracker.ietf.org/doc/html/rfc6902/ https://datatracker.ietf.org/doc/html/rfc6902/