-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change internal JSON Generation for OrderedMaps to be backwards-compa…
…tible (#894) * Fix BuildEmptyTree for ordered maps * Fix internal JSON
- Loading branch information
Showing
3 changed files
with
120 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
ygot/testdata/emitjson_orderedmap_container_internal.json-txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{ | ||
"ordered-lists": { | ||
"ordered-list": [ | ||
{ | ||
"config": { | ||
"key": "foo", | ||
"value": "foo-val" | ||
}, | ||
"key": "foo" | ||
}, | ||
{ | ||
"ordered-list": { | ||
"bar": { | ||
"config": { | ||
"key": "bar", | ||
"value": "bar-val" | ||
}, | ||
"key": "bar" | ||
}, | ||
{ | ||
"baz": { | ||
"config": { | ||
"key": "baz", | ||
"value": "baz-val" | ||
}, | ||
"key": "baz" | ||
}, | ||
"foo": { | ||
"config": { | ||
"key": "foo", | ||
"value": "foo-val" | ||
}, | ||
"key": "foo" | ||
} | ||
] | ||
} | ||
} | ||
} |