[YANGTOOLS-607] New yang parser allows two choice cases with identical child elements Created: 02/May/16  Updated: 10/Apr/22  Resolved: 11/May/16

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Igor Foltin Assignee: Peter Kajsa
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5829

 Description   

Let's say we have a yang model which contains this:

choice ch {
case a {
leaf a

{ type string; }
}

case b {
leaf a { type string; }

}
}

This is invalid as both cases contain the same child (with identical QName). New yang parser should detect this problem and throw an Exception.



 Comments   
Comment by Peter Kajsa [ 04/May/16 ]

fix: https://git.opendaylight.org/gerrit/#/c/38371/

Generated at Wed Feb 07 20:53:45 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.