protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

A pure Elixir implementation of Google Protobuf.

Results 31 protobuf issues
Sort by recently updated
recently updated
newest added

For context: https://github.com/elixir-grpc/grpc/issues/274 I'm working on http/json transcoding for [grpc](https://github.com/elixir-grpc/grpc/) and basically want to populate `MethodDescriptors` options with an extension during compilation. The recommended approach is to install the escript...

Kind:Feature
Effort:Large

Adds callbacks on stubs to allow for using Mox in tests.

The library should be OS agnostic, but there are issues with decoding (when generating with `protoc -I priv/protos --elixir_out=plugins=grpc:./lib/ priv/protos/helloworld.proto`) Even for provided helloworld example Error trace ``` ** (Protobuf.DecodeError)...

For context: https://github.com/elixir-protobuf/protobuf/pull/301 At the moment they are two different behaviors between `MyMessage.encode/1` and `Protobuf.JSON.encode!`. `MyMessage.encode/1` does validate the structure of the message, while `Protobuf.JSON.encode!` does not. See https://github.com/elixir-protobuf/protobuf/pull/301 for...

Kind:Feature

This fixes the issue that `option (elixirpb.file).module_prefix` is not loaded correctly if the protobuf package is installed from Hex, due to missing lib/elixirpb/pb_extension.pb.ex in the 0.11.0 or 0.12.0 packages. Closes...

[lib/elixirpb/pb_extension.pb.ex](https://github.com/elixir-protobuf/protobuf/blob/main/lib/elixirpb/pb_extension.pb.ex) is missing in the 0.11.0 or 0.12.0 packages. Due to lacking the extension, the decoder fails to read `FileOptions` from descriptor_set. Instead, it is put into `__unknown_fields__` , like:...

Hey team! I am seeing a weird behaviour when we pass in a wrong struct to a protobuf - `Protobuf.encode` encodes it just fine, but I would expect that to...

Kind:Bug

This PR takes code comments from the protobuf files and add them as `@moduledoc` blocks. Some of the code and all of the magic numbers are taken from [protokit golang...