Thanks for the suggestions. I started playing with just using regexes to rewrite the .proto files and this seems to work.
On Friday, May 4, 2018 at 3:04:03 PM UTC-4, Mark Hoffman wrote: > > Hi, > > I have the tasks of retrofitting a large repo of .proto files to include a > field option with a default value to every field, except for enums. We > can't assume if the field option is not present that it has a default, for > security reasons. Before I go off an write a parser to handle this one time > task, I was justing wondering something might already exist. One other > issue, I need to preserve the comments in the .proto files. > > Thanks. > > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
