[YANGTOOLS-226] Yangtools parser allows 2 cases with same child elements Created: 25/Jul/14  Updated: 10/Apr/22  Due: 29/Jul/14  Resolved: 23/Sep/14

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

Type: Bug
Reporter: Maros Marsalek Assignee: Ladislav Borak
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: 1423

 Description   

Lets say we have yang model containing:

choice ch {
case a {
leaf a

{ type string; }
}

case b {
leaf a { type string; }

}
}

This is invalid as both cases add the same child. Yangtools parser should detect this problem and fail.



 Comments   
Comment by Maros Marsalek [ 25/Jul/14 ]

Child nodes from cases should be unique considering QNames.

Comment by Ladislav Borak [ 31/Jul/14 ]

proposed patch: https://git.opendaylight.org/gerrit/#/c/9386/

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