Add test for union with identity XML codec issue
[yangtools.git] / yang / yang-data-codec-xml / src / test / resources / yt1108 / yang / foo.yang
1 module foo {
2     namespace "foo-namespace";
3     prefix "f";
4
5     identity ident-base;
6     identity ident-one {
7         base ident-base;
8     }
9
10     typedef union-type {
11         type union {
12             type uint8;
13             type identityref {
14                 base ident-base;
15             }
16         }
17     }
18
19     container leaf-container {
20         leaf union-identityref-leaf {
21             type union-type;
22         }
23
24         leaf identityref-leaf {
25             type identityref {
26                 base ident-base;
27             }
28         }
29     }
30 }