Currently there is no issue sending lists and arrays in results or events but the client only takes the first element of the returned list as it is hardcoded.
Handling Iterables needs a new API as internal class gets deleted the due to type erasure and you end with a list/set of JsonNodes. We will need to add a new call or subscribe api that uses a TypeReference to properly support that, that leads to more changes in the internal code, so I left that for a future improvement.
Handling arrays is as simple as just letting the jackson parse all the elements received in the response so I added support for it.
Currently there is no issue sending lists and arrays in results or events but the client only takes the first element of the returned list as it is hardcoded. Handling Iterables needs a new API as internal class gets deleted the due to type erasure and you end with a list/set of JsonNodes. We will need to add a new call or subscribe api that uses a TypeReference to properly support that, that leads to more changes in the internal code, so I left that for a future improvement.
Handling arrays is as simple as just letting the jackson parse all the elements received in the response so I added support for it.