Bug 3224 - Parsing data with choice in case via augmentation results in
[yangtools.git] / yang / yang-data-codec-gson / src / test / resources / complexjson / yang / complexjson.yang
index b48b952b9de0593a84b70d8dbf3f9aa51f8336df..9d49d083fcea54f15a23e480109835eb72a3279e 100644 (file)
@@ -142,4 +142,38 @@ module complexjson {
         }
     }
 
+    augment "/cont1" {
+        /*ext:augment-identifier top-choice-augment1;*/
+        choice augment-choice1 {
+            case case1 {
+                container case1-container {
+                    leaf case1-leaf {
+                        type string;
+                    }
+                }
+            }
+
+            case case2 {
+                container case2-container {
+                    leaf case2-leaf {
+                        type string;
+                    }
+                }
+            }
+        }
+    }
+
+    augment "/cont1/augment-choice1/case1" {
+        /*ext:augment-identifier top-choice-augment2;*/
+        choice augment-choice2 {
+            case case11 {
+                container case11-choice-case-container {
+                    leaf case11-choice-case-leaf {
+                        type string;
+                    }
+                }
+            }
+        }
+    }
+
 }