Closed eduardnegru closed 4 years ago
As to the schema returning container undefined
as the root, this is because the config JS object is not named and we need to describe that the config object as a container element. I believe there is an optional argument that we can specify into .compose in order to name the container.
The below will allow you to specify a name for the container.
Yang.compose(config, { tag: “my-config” })
For every value of config there is always a root container called "undefined" generated.
Is this the desired behaviour? If yes, what is the purpose of having an undefined container every time?