This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +42
-12
lines changed
main/java/org/onosproject/yang/serializers/json Expand file tree Collapse file tree 3 files changed +42
-12
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ private static DataNodeSiblingPositionType getCurrentChildSiblingType(DataNode c
161
161
case UNKNOWN_TYPE :
162
162
case LAST_INSTANCE :
163
163
case NOT_MULTI_INSTANCE_NODE :
164
+ case SINGLE_INSTANCE_IN_MULTI_NODE :
164
165
/*
165
166
* If type of previous child is unknown or last instance,
166
167
* that means the current child is the first sibling. If
Original file line number Diff line number Diff line change @@ -24,24 +24,37 @@ module demo1 {
24
24
leaf name {
25
25
type string ;
26
26
description "name of logistics-supervisor" ;
27
+ }
28
+ leaf departmentId {
29
+ type string ;
30
+ description "name of department" ;
31
+ }
27
32
}
28
33
29
- leaf departmentId {
30
- type string ;
31
- description "name of department" ;
34
+ list General-supervisor {
35
+ key "name" ;
36
+ leaf name {
37
+ type string ;
38
+ }
32
39
}
33
- }
34
40
35
- container Purchasing-supervisor {
36
- leaf purchasing-specialist {
37
- type string ;
38
- description "name of the purchasing-specialist person" ;
41
+ list Supervisor {
42
+ key "name" ;
43
+ leaf name {
44
+ type string ;
45
+ }
39
46
}
40
47
41
- leaf-list support {
42
- type string ;
43
- description "name of the support person" ;
44
- }
48
+ container Purchasing-supervisor {
49
+ leaf purchasing-specialist {
50
+ type string ;
51
+ description "name of the purchasing-specialist person" ;
52
+ }
53
+
54
+ leaf-list support {
55
+ type string ;
56
+ description "name of the support person" ;
57
+ }
45
58
}
46
59
47
60
leaf-list Warehouse-supervisor {
Original file line number Diff line number Diff line change 21
21
"departmentId" : " string6"
22
22
}
23
23
],
24
+ "General-supervisor" : [
25
+ {
26
+ "name" : " string5"
27
+ },
28
+ {
29
+ "name" : " string6"
30
+ },
31
+ {
32
+ "name" : " string7"
33
+ }
34
+ ],
35
+ "Supervisor" : [
36
+ {
37
+ "name" : " string8"
38
+ }
39
+ ],
24
40
"Purchasing-supervisor" : {
25
41
"purchasing-specialist" : " string7" ,
26
42
"support" : [
You can’t perform that action at this time.
0 commit comments