module yt776 { namespace yt776; prefix yt776; container box { list object { key object-id; leaf object-id { type string; } leaf-list attributes { type string; min-elements 1; max-elements 2; } list nested { key nested-attribute; max-elements 1; leaf nested-attribute { type string; } } } choice any-of { leaf some-leaf { type string; } list some-list { key some-leaf; min-elements 1; leaf some-leaf { type string; } } } } }