You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, thank you for all of the work on this library. I really appreciate the ability to use typescript with protobufs (and I'm using Deno which all seems to work well).
I have a message type that has a oneof field. When serializing that message type to wire-format, I'm leveraging the Confluent Schema Registry's protobuf solution, which is using this https://www.npmjs.com/package/protobufjs. The problem is the way protobufjs converts a message's oneof field to wire-format and back again doesn't seem to work with the protobuf-ts method.
// using protobuf-ts
const example = Test.create({
innerField: {
oneofKind: "innerMessageA",
innerMessageA: {}
});
// using protobufjs
const example = Test.create({
innerMessageA: {}
});
I've worked around the encoding problem by converting the protobuf-ts to JSON, then providing to protobufjs. However, how can I convert from protobufjs to protobuf-ts? Should I also use a JSON intermediate step?
TYIA for your help, please let me know if you need any additional info here.
The text was updated successfully, but these errors were encountered:
Hello,
First off, thank you for all of the work on this library. I really appreciate the ability to use typescript with protobufs (and I'm using Deno which all seems to work well).
I have a message type that has a
oneof
field. When serializing that message type to wire-format, I'm leveraging the Confluent Schema Registry's protobuf solution, which is using this https://www.npmjs.com/package/protobufjs. The problem is the way protobufjs converts a message's oneof field to wire-format and back again doesn't seem to work with the protobuf-ts method.Message:
I've worked around the encoding problem by converting the protobuf-ts to JSON, then providing to protobufjs. However, how can I convert from protobufjs to protobuf-ts? Should I also use a JSON intermediate step?
TYIA for your help, please let me know if you need any additional info here.
The text was updated successfully, but these errors were encountered: