The previous reader implementation made the assumption that the next num_children schema elements were all that was required to reconstruct a given element.
This assumption broke down when faced with multiple levels of nesting.
I've added some failing integration tests and then applied a fix to decodeSchema, which makes them pass.
I added the extra schema.js test purely for completeness, it passed fine without alteration.
The previous reader implementation made the assumption that the next
num_children
schema elements were all that was required to reconstruct a given element.This assumption broke down when faced with multiple levels of nesting.
I've added some failing integration tests and then applied a fix to
decodeSchema
, which makes them pass. I added the extra schema.js test purely for completeness, it passed fine without alteration.