BUG 2973 - correction of output for empty yang type
[yangtools.git] / yang / yang-data-codec-gson / src / test / resources / complexjson / yang / complexjson.yang
1 module complexjson {
2     namespace "ns:complex:json";
3     prefix cj;
4
5     revision "2014-08-11" {
6     }
7
8     typedef wrapped-instance-identifier {
9         description "Wrapped instance Identifier";
10         type instance-identifier;
11     }
12
13     identity ident;
14
15     container cont1 {
16
17         leaf empty {
18             type empty;
19         }
20
21         anyxml lf12-any;
22         anyxml lf13-any;
23         anyxml lf14-any;
24
25         leaf lf11 {
26             type int32;
27         }
28
29         leaf-list lflst11 {
30             type string;
31         }
32
33         list lst11 {
34             key "key111 lf111";
35             leaf key111 {
36                 type string;
37             }
38             leaf lf111 {
39                 type string;
40             }
41             leaf lf112 {
42                 type wrapped-instance-identifier;
43             }
44             leaf lf113 {
45                 type string;
46             }
47         }
48
49         list lst12 {
50             leaf lf121 {
51                 type string;
52             }
53             leaf lf122 {
54                 type string;
55             }
56         }
57
58
59         choice choc11 {
60             case c11A {
61                 leaf lf13 {
62                     type string;
63                 }
64             }
65             leaf lf16 {
66                 type string;
67             }
68         }
69
70         choice choc12 {
71             case c12A {
72             }
73         }
74     }
75
76     augment "/cont1/choc12" {
77         case c12B {
78             leaf lf17 {
79                 type string;
80             }
81         }
82     }
83
84     augment "/cont1" {
85         container cont11 {
86             leaf lf111 {
87                 type string;
88             }
89         }
90     }
91
92     augment "/cont1" {
93         leaf lf12_1 {
94             type string;
95         }
96         leaf lf12_2 {
97             type string;
98         }
99     }
100
101     augment "/cont1" {
102         leaf lf12_3 {
103             type string;
104         }
105     }
106
107     augment "/cont1/choc11" {
108         case c11B {
109             leaf lf14_1  {
110                 type string;
111             }
112         }
113     }
114
115     augment "/cont1/choc11" {
116         case c11C {
117             leaf lf14_2  {
118                 type string;
119             }
120         }
121     }
122
123     augment "/cont1/choc11/c11A" {
124         leaf lf15_11  {
125             type bits {
126                 bit one;
127                 bit two;
128                 bit three;
129             }
130         }
131         leaf lf15_12  {
132             type identityref {
133                 base ident;
134             }
135         }
136
137     }
138
139     augment "/cont1/choc11/c11A" {
140         leaf lf15_21 {
141             type string;
142         }
143     }
144
145 }