gnmic
gnmic copied to clipboard
JsonIetfVal of JsonVal in the form a json array might not be processed properly.
https://github.com/openconfig/gnmic/blob/345c505534afda492e27b7c1afd76cd72ae095e9/formatters/event.go#L260C1-L260C1
JsonVal or JsonIetfVal might be in the form of a json array, but in the code corresponding to the above link, the json array form is classified into the default case. Will this kind of handling cause any problems?
While it's not a common practice for a router to send a value as a list at the top level of a JSON object, it typically sends multiple notifications, each containing a JSON dictionary as a value. However, it might be a good idea to address this potential issue.
@karimra thanks for your reply. If you have any plan to do this, please let me know.