Add support to union of maps, tables and array of maps and tables #3121
Labels
module/serdes
Issues related to the Ballerina serdes module
Status/Blocked
Issues that are currently blocked.
Team/PCM
Protocol connector packages related issues
Type/Task
Description:
Current serdes implementation doesn't support unions of map<>, table<>, map<>[] and table<>[] due to name collision issue. Ideally we need to support this feature.
Ex:
To generate the schema for the
UnionType
in protobuf level, the union members should have unique names. One way to avoid name collision is to allow the user to use the map type with a reference types as below.This way we could eliminate the name collision issue in protobuf level and generate a schema for
UnionType
as below,Describe your task(s)
Implement above solution and throw an error for non referenced member (table, map) types.
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: