You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right. This should be documented. Possibly we could introduce a new operation that has explicit insert/merge behavior and make import behave consistently.
The spec says:
However, when the loaded object is an array, it is flattened in the parent array rather than replacing
$import
node.How to reproduce
parent.json:
import.json
$ schema-salad-tool --print-pre parent.json
Expected behavior
The
$import
node is replaced by an array as follows:Actual behavior
Elements in the array in the
$import
ed document are flattened in the parent array as follows:Versions
Note that this undocumented behavior is already used in metaschema.
The text was updated successfully, but these errors were encountered: