DSDL plugin mandatory containers
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
I have a question regarding mandatory containers.
RFC6110 claims that:
A container node is mandatory if its definition does not contain
the 'presence' substatement and at least one of its child nodes is
mandatory.
All clear. But what about the case when all of the mandatory children are state
data and you wish to generate a RNG schema to validate configuration only data.
As it is now such a schema will demand an empty container to be present even if
this is completly redundant. Is this a bug or a feature? Shouldn't such a
container be wrapped in rng:optional when extracting it from a hybrid schema?
After all it will no longer have any mandatory children after the
transformation...
An example module which demonstrates this case is ietf-netconf-acm@2011-12-23
with "nacm" root container which specifies three mandatory leafs – all of
which are state leafs. If you generate a RNG schema for target config with DSDL
plugin, this container will always need to be present for the instance document
to be valid.
```
Original issue reported on code.google.com by `jernej.t...@gmail.com` on 11 Apr 2012 at 11:02
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.