Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
BUG 1440 - json stream to normalized node stream writer
[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
9
identity ident;
10
11
container cont1 {
12
13
anyxml lf12-any;
14
anyxml lf13-any;
15
anyxml lf14-any;
16
17
leaf lf11 {
18
type int32;
19
}
20
21
leaf-list lflst11 {
22
type string;
23
}
24
25
list lst11 {
26
key "key111 lf111";
27
leaf key111 {
28
type string;
29
}
30
leaf lf111 {
31
type string;
32
}
33
leaf lf112 {
34
type instance-identifier;
35
}
36
leaf lf113 {
37
type string;
38
}
39
}
40
41
list lst12 {
42
leaf lf121 {
43
type string;
44
}
45
leaf lf122 {
46
type string;
47
}
48
}
49
50
51
choice choc11 {
52
case c11A {
53
leaf lf13 {
54
type string;
55
}
56
}
57
leaf lf16 {
58
type string;
59
}
60
}
61
62
choice choc12 {
63
case c12A {
64
}
65
}
66
}
67
68
69
augment "/cont1/choc12" {
70
case c12B {
71
leaf lf17 {
72
type string;
73
}
74
}
75
}
76
77
78
augment "/cont1" {
79
container cont11 {
80
leaf lf111 {
81
type string;
82
}
83
}
84
}
85
86
augment "/cont1" {
87
leaf lf12_1 {
88
type string;
89
}
90
leaf lf12_2 {
91
type string;
92
}
93
}
94
95
augment "/cont1" {
96
leaf lf12_3 {
97
type string;
98
}
99
}
100
101
102
augment "/cont1/choc11" {
103
case c11B {
104
leaf lf14_1 {
105
type string;
106
}
107
}
108
}
109
110
augment "/cont1/choc11" {
111
case c11C {
112
leaf lf14_2 {
113
type string;
114
}
115
}
116
}
117
118
augment "/cont1/choc11/c11A" {
119
leaf lf15_11 {
120
type bits {
121
bit one;
122
bit two;
123
bit three;
124
}
125
}
126
leaf lf15_12 {
127
type identityref {
128
base ident;
129
}
130
}
131
132
}
133
134
augment "/cont1/choc11/c11A" {
135
leaf lf15_21 {
136
type string;
137
}
138
}
139
140
}