Validates an arbitrary value as a §79 scene document and returns it in
canonical form.
The result is a fresh, deep-frozen document holding only the fields this
format defines, in a fixed key order, with every default omitted — so
re-encoding it is byte-stable and no unknown field from an untrusted document
survives into the instantiator.
Parameters
value: unknown
the candidate document (typically JSON.parse output)
Validates an arbitrary value as a §79 scene document and returns it in canonical form.
The result is a fresh, deep-frozen document holding only the fields this format defines, in a fixed key order, with every default omitted — so re-encoding it is byte-stable and no unknown field from an untrusted document survives into the instantiator.