We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toObject
oneofs
protobuf.js version: 7.4.0
Reproduction example:
Proto message:
syntax = "proto3"; message Test { optional string field = 1; }
Code (node.js):
const protobufjs = require('protobufjs'); const root = protobufjs.loadSync('./test.proto'); console.log(root.Test.toObject({field: 'hello'}, {oneofs: true}));
Expected output:
{field: 'hello'}
Actual output:
{ field: 'hello', _field: 'field' }
The text was updated successfully, but these errors were encountered:
_
No branches or pull requests
protobuf.js version: 7.4.0
Reproduction example:
Proto message:
Code (node.js):
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: