Bug 4969: NPE in JSONCodecFactory by attempt to find codec for a leafref
[yangtools.git] / yang / yang-data-codec-gson / src / test / resources / bug-4969 / yang / foo.yang
1 module foo {
2     namespace "foo";
3     prefix foo;
4
5     import bar { prefix bar; revision-date 2016-01-22; }
6
7     revision "2016-01-22" {
8         description "Initial version";
9     }
10
11     container root {
12         leaf ref1 {
13             type bar:ref1;
14         }
15         leaf ref2 {
16             type bar:ref2;
17         }
18         leaf ref3 {
19             type bar:ref3;
20         }
21         leaf ref4 {
22             type leafref {
23                 path "/bar:root/bar:l1";
24             }
25         }
26     }
27 }