jackson-dataformats-binary icon indicating copy to clipboard operation
jackson-dataformats-binary copied to clipboard

[Protobuf] Generate schema for fixed32 wire type

Open marsqing opened this issue 6 years ago • 1 comments

Can I generate a pb schema with a fixed32(wire type 5) field? I have read ProtoBufSchemaVisitor.java and did't find a way to do that. Thanks!

marsqing avatar Aug 28 '17 07:08 marsqing

I think that currently assumption is that all ints and Integers produce vint types. I would be open to a feature for allowing change of defaults between fixed/variable-length. Ideally it would also be possible to somehow indicate this on per-property level, but I can't immediately think of an existing marker (like via @JsonFormat or by using some other JDK type as placeholder). But if you can think of something that could be indicate this I would be intered.

cowtowncoder avatar Aug 28 '17 23:08 cowtowncoder