Fixed handling of services with arrays inside them #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes two things that I've found not working at all.
I've added a small class called Map, which implements access by dot. This class was not written by be, but rather taken from the supplied stackoverflow link, tell me, if that would be a licensing problem.
To easily test my changes, I've written up a small test application which provides a service with arrays and outputs its content upon being called. See --> here
Potential problem
A dynamically sized array would be written, for the UI, like this
[{'data1': 1, 'data2': 2}, {'data1': 5, 'data2': 6}]
. If you forget to specify one dict key, present in the message definition, you get the previously mentioned serialization exception again. There needs to be some sort of default initialization of all message members in the dict, but I'm unsure how do it.