[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 |
||
| External issue ID: | 1423 |
| Description |
|
Lets say we have yang model containing: choice ch { } 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/ |