[ONOS-7042] Value validation as per defined datatype restriction and pattern
Change-Id: I479e515e74bf59178bc56a8c94de25d14af17933
diff --git a/runtime/src/test/resources/dataTypeValidation.yang b/runtime/src/test/resources/dataTypeValidation.yang
new file mode 100644
index 0000000..8ff874b
--- /dev/null
+++ b/runtime/src/test/resources/dataTypeValidation.yang
@@ -0,0 +1,22 @@
+module dataTypes {
+
+ yang-version 1;
+
+ namespace "ydt.dataTypes";
+
+ prefix "datatypes";
+
+ organization "ON-LAB";
+
+ description "This module defines all data types.";
+
+ revision "2016-05-24" {
+ description "Initial revision.";
+ }
+
+ container datatype{
+ leaf integer {
+ type int8;
+ }
+ }
+}
\ No newline at end of file