Make it possible to override text
(atom) node with an array or an object node
#159
Labels
enhancement
New feature or request
Currently if a text node and an object (or an array) node are found at the same path during inheritance processing, an error will be reported.
This behavior is not sufficiently flexible if we want to define a following node in order to force users to define a certain node.
base.json
Because the following file results in an error.
test.json
We want the following feature.
In case type mismatch happens, to an object node, an entry
"$type": "object"
.If it is an atom node, instead, the node will be converted into the following one.
If it is an array,
If it is an object,
Then merging will be performed.
But, note that
$atomValue
will be removed before the "templating"(evaluation) stage is executed, unless the$type
isatom
.$arrayValue
will be removed, unless the$type
isarray
.The text was updated successfully, but these errors were encountered: