config_struct icon indicating copy to clipboard operation
config_struct copied to clipboard

Better handling of optional fields

Open mohansammeta opened this issue 5 years ago • 0 comments

Consider the below example :

{
  "my_structs": [
    {
      "struct_with_a_and_b": {
        "a": 123
      }
    },
    {
      "struct_with_a_and_b": {
        "a": 111,
        "b": 123
      }
    }
  ]
}

Generated constant will have "b" value generated but it is not declared as field in "struct_with_a_and_b".

mohansammeta avatar Jul 17 '20 17:07 mohansammeta