[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
Platform: 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 ]

patch:
https://git.opendaylight.org/gerrit/#/c/16191/

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