as you can see for the array it uses the name of the struct (subvector) with an underscore instead of the name of the field (name1).
For the occurrence it uses the name of the field (name2).
For the array, in my opinion, this is wrong. Because this will not scale:
ZCBOR seems to be translating following in a different way. How it deals with arrays seems to be wrong:
will be translated to following code:
as you can see for the array it uses the name of the struct (subvector) with an underscore instead of the name of the field (name1). For the occurrence it uses the name of the field (name2).
For the array, in my opinion, this is wrong. Because this will not scale:
will be translated by the python script into:
which will not compile since both have the same names now