chrusty / protoc-gen-jsonschema

Protobuf to JSON-Schema compiler
Apache License 2.0
496 stars 101 forks source link

including comments in the file #176

Closed grossd closed 9 months ago

grossd commented 11 months ago

Hello,

Nico from https://buf.build/ was so kind to mention protoc to jsonschema project.

Its what I was looking for, but it seems that it misses one descriptor capability -- to access comments in protobuf files.

Would be great if json could also include comments in the file -- i think there are also ways to indicate where a comment is placed.

thanks,

Dan

chrusty commented 9 months ago

Hi @grossd. Proto file comments are already being used in several places here to infer various things.

Take a look at this example, and what it turns into.