Skip to content

Parsing proto files #2204

Answered by oldergod
snssays asked this question in Q&A
Feb 17, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

That should be simple yes.
You don't even have to build the Schema, you could manipulate the parsed file directly.
Parse it with ProtoParser, you mutate the types you want, you could be iterating all ProtoFileElement#services, add the option you need or whatever change you wanna do, and reprint the protos with ProtoFileElement.toSchema().

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@snssays
Comment options

@oldergod
Comment options

Answer selected by snssays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants