mcap icon indicating copy to clipboard operation
mcap copied to clipboard

CLI: return actual copy/pasteable protobuf schemas from mcap list schemas on a protobuf mcap

Open wkalt opened this issue 3 years ago • 0 comments

Currently when you run mcap list schemas on a protobuf mcap it makes a best effort translation of the binary FileDescriptorSet back to text for display. The translation is sufficient to convey the schema's meaning, but it's not guaranteed to be a valid .proto. From what I remember there are some reasons why it is not straightforward to go from FileDescriptorSet back to text .proto -- but unfortunately I don't remember what those reasons are.

If possible, it would be nice to recover exactly equivalent .proto text schemas to what's in the file descriptorset.

wkalt avatar Jun 23 '22 03:06 wkalt