Closed rudranil-das closed 2 years ago
This is a high priority issue for gosnappi integration in ixia-c as it is blocking 40+ E2E sanity-cases. @arkajyoti-cloud
@Rangababu-R I see multiple problems with JSON deserialization here. Let's break it up into multiple issues if needed.
looks like there is an issue with setDefaults. will fix and get back on this
Observation from Snappi version: 0.6.5
Let me illustrate this with an example of - rate node of input json being updated by FromJSON (of gosnappi.Config) with defaults [i.e. "choice":1,"pps":1000].
Input json to (gosnappi.Config->)FromJSON
Output object dump from (gosnappi.Config->)FromJSON is
If you look at the "rate" block, "choice" is reset to "1" [which is PPS] and "pps" = 1000 attribute is added.
I think setdefaults in workflow of FromJSON is causing this (but you can validate the same)
Similar issue is observed for FromJSON in following cases: