Implemented range validation (Bug 178).
[mdsal.git] / code-generator / binding-java-api-generator / src / test / resources / compilation / leaf-return-types / test.yang
index e55d253796ef21762a5e4f4d8fb718c831e00cb9..53456850e18a696dfc650fdc31b299e6af533c3e 100644 (file)
@@ -8,7 +8,9 @@ module test {
 
     container nodes {
         leaf id-binary {
-            type binary;
+            type binary {
+                length 1..10;
+            }
         }
         leaf id-bits {
             type bits {
@@ -25,6 +27,7 @@ module test {
         leaf id-decimal64 {
             type decimal64 {
                 fraction-digits 4;
+                range "1.5..5.5";
             }
         }
         leaf id-empty {