I have defined data model using YANG, with "mandatory true", "range 0..10", etc. Then via dlux apidoc/explorer, I put a JSON object in the leaf node that I have defined. The operation is successful; however, the 'mandatory' check is not really performed. The 'range' check is not performed. Basically I can put in a number exceeding the range or not specify the mandatory leaf value. Also, I would like to have my config data sorted in ascending numeric order of the key.
Q1: Is the ODL yang to java conversion tool not being to support those YANG syntax? Q2: Is the workaround to modify the yang--gen-code java code directly? Q3: How to implement "ordered-by user"?