Bug 6410: Fixed initialization of typedefs in rpc
[yangtools.git] / yang / yang-parser-impl / src / test / resources / bugs / bug6410 / foo.yang
diff --git a/yang/yang-parser-impl/src/test/resources/bugs/bug6410/foo.yang b/yang/yang-parser-impl/src/test/resources/bugs/bug6410/foo.yang
new file mode 100644 (file)
index 0000000..7dccbe1
--- /dev/null
@@ -0,0 +1,21 @@
+module foo {
+    namespace foo-namespace;
+    prefix foo-prefix;
+
+    revision 2016-08-16;
+
+    rpc test-rpc {
+        typedef test-string-typedef {
+            type string {
+                length "5..15";
+            }
+            default "def-val";
+        }
+        typedef test-int-typedef {
+            type int32 {
+                range "10..100";
+            }
+            default 50;
+        }
+    }
+}
\ No newline at end of file