Skip to content

toObject options arrays not working #785

Open
@ayang008

Description

@ayang008

protobuf.js version: <6.7.0>

Message before toObject:
intimacy is a repeated field
image

Message after toObject:
intimacy is gone! There should be an empty array named intimacy
image

I also tried another option enums, and it worked. You can see that the result is "OK" now instead of 1.
image

Activity

dcodeIO

dcodeIO commented on Jun 9, 2017

@dcodeIO
Member

Not exactly sure where this is coming from - or if it has already been fixed somewhere down the road.

Relevant line is probably here: https://github.com/dcodeIO/protobuf.js/blob/master/src/converter.js#L219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dcodeIO@ayang008

        Issue actions

          toObject options arrays not working · Issue #785 · protobufjs/protobuf.js