Document flattenned data encoding
Totktonada opened this issue · 0 comments
Totktonada commented
Rules for the record and record* are the following:
- record on uplevel (inside tuple / array / union): encode with wrapping array;
- record inside another record or record*: encode fields as is, w/o wrapping.
- record* on uplevel: encode as nil or with wrapping array.
- record* inside another record or record*: encode as nil or with wrapping array.
Others are pretty straightforward (and context unaware), but need to be explicitly stated too.