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

[enhancement] support for gpb text format #225

Open
sebastiw opened this issue Mar 29, 2023 · 1 comment
Open

[enhancement] support for gpb text format #225

sebastiw opened this issue Mar 29, 2023 · 1 comment

Comments

@sebastiw
Copy link

Hi,

I'm wondering about the support for *.textproto files, i.e. text-format for google protobufs.
https://protobuf.dev/reference/protobuf/textformat-spec/
As far as I can see gpb doesn't support it, but maybe I'm mistaken?

Otherwise I've made a scanner and parser for the format, https://github.com/sebastiw/gpb_text
and am wondering if you are interested in merging this code into gpb.

In future I also want to add validation using the proto-definition.

Best regards

@tomas-abrahamsson
Copy link
Owner

As far as I can see gpb doesn't support it, but maybe I'm mistaken?

True. I've noticed the text format has gotten documented, but haven't gotten around to implement anything around it.

... am wondering if you are interested in merging this code into gpb.

Nice! It could be interesting. It looks like the format from the gpb_text differs a bit from gpb's Erlang-format(s) of proto messages. I suppose an approach can be to post-process the output from gpb_text according to (the definitions of) a .proto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants