First thanks for the elm protobuf compiler, its fantastic and lets me roll my own websocket/json-rpc with protobuf+elm on one side and protobuf+go on the other. The compiled elm has been trouble-free until I tried to decode a list of objects (a "Schedule").
the js console shows elm received some json of apparently the right format
response: { id = "90de-18f43f9f486f", method = "ScheduleListResponse", object = { Ok = True, Schedules = { 0 = { Id = "schedules-877d-76499fe253ae", AccountId = "accounts-b8b0-6d34a035a65e", AlgorithmId = "noop", Status = "active" } } } }
after calling scheduleListResponseDecoder response.object, the decoded object, always has an empty array for Schedules.
First thanks for the elm protobuf compiler, its fantastic and lets me roll my own websocket/json-rpc with protobuf+elm on one side and protobuf+go on the other. The compiled elm has been trouble-free until I tried to decode a list of objects (a "Schedule").
the js console shows elm received some json of apparently the right format
after calling
scheduleListResponseDecoder response.object
, the decoded object, always has an empty array for Schedules.the ScheduleListResponse protbuf is defined as
and the Schedule is
the Elm for ScheduleListResponse also looks good
any ideas what might be wrong?