Skip to content
New issue

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

Support serialization of generated protobuf #326

Open
pvlugter opened this issue May 11, 2022 · 1 comment
Open

Support serialization of generated protobuf #326

pvlugter opened this issue May 11, 2022 · 1 comment
Labels
javascript-sdk kalix-runtime Runtime and SDKs sub-team

Comments

@pvlugter
Copy link
Member

Currently serialized state requires the reflective protobuf message, which includes the $type for creating the type url. This makes it awkward from TypeScript, where the reflective and statically generated types need to be mixed for state types.

Protobuf.js does now generate a getTypeUrl message (protobufjs/protobuf.js#1463).

This hasn't been released yet (no release for a year), although it looks work is being done to get a new version released. We could otherwise release from a fork temporarily, published under @kalix-io, to get this functionality.

@pvlugter
Copy link
Member Author

pvlugter commented Aug 5, 2022

New version of protobufjs has been published, so using only the statically generated protobuf types can be supported now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript-sdk kalix-runtime Runtime and SDKs sub-team
Projects
None yet
Development

No branches or pull requests

1 participant