You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generator converts fields of array types, such as uint16_t[6] to a List (in FieldGenerator.arrayType()), however ReflectionPayloadDeserializer.deserialize doesn't have a case for this.
I would also recommend adding a warning print at the end of ReflectionPayloadDeserializer.deserialize if there is no type match, so at least it's made obvious to the user that something is wrong, instead of just having a null field.
The text was updated successfully, but these errors were encountered:
I've committed code to master that implements serialization/deserialization of List fields, which should now support your case.
I've only tested it in test code, so I am not keen on making a release yet. It would help if you can verify that this works for you, then I will do further testing and make a release for it.
As far as throwing exceptions for this kind of thing, I also thought it was a good idea previously, but then that made the library completely unusable when support for any of the fields are missing (rather than somewhat useful). This is obviously something that should be easy to cover fully, unfortunately I lack the tests and use cases to ensure that nothing has been missed at this time.
The generator converts fields of array types, such as
uint16_t[6]
to a List (inFieldGenerator.arrayType()
), howeverReflectionPayloadDeserializer.deserialize
doesn't have a case for this.I would also recommend adding a warning print at the end of
ReflectionPayloadDeserializer.deserialize
if there is no type match, so at least it's made obvious to the user that something is wrong, instead of just having anull
field.The text was updated successfully, but these errors were encountered: