[YANGTOOLS-407] Yang-Parser-Impl: Add default values to min-elements and max-elements constraint statements Created: 06/Feb/15 Updated: 10/Apr/22 Resolved: 08/Apr/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jan Hajnar | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2685 |
| Description |
|
When max-elements or min-elements are not specified in the yang file, schema.getConstraints().getMinElements() and shema.getConstraints().getMaxElements() returns null. According to YANG specification when these statements are not found, they should hold default values of "0" for min-elements and "unbounded" for max elements. (which could be Integer.MAX_VALUE) |
| Comments |
| Comment by Jan Hajnar [ 09/Mar/15 ] |