-
Notifications
You must be signed in to change notification settings - Fork 13
Allow construction of ProtobufSchema
using Jackson introspection functionality
#8
Comments
Is there currently any progress about this feature? If you not started on this yet, I would like to make it. However I'm new to Jackson and don't how hard it is to program this kind functionality. Maybe you can help me out? |
I have not started actual work on it, although I did investigate possible ways, models and so forth. I think that the main challenge should not be so much Jackson integration as just modeling; if you can create a useful model (intuitive to use, modify), and one that can be built both manually and from |
Ok, I will go look more into this next week. For now I already have made a parser with Xtext (called: Protolipse), which can serialize and generate Also found protostuff-runtime-proto on github which actually does what we want, however it is made for Protostuff and so uses the internal schema model of Protostuff as intermediate model. This can maybe be a good base/starting point. |
I did earlier use protostuff, but found I don't deeply care about what is used, but ideally it should be relatively small package with no additional external dependencies. The main problem with existing libraries is, in my opinion, that their intermediate models are not very good; either they are not modular, or they only allow creation from It seems to me that existing packages should be fine for parsing of protoc; although if a simple grammar generator can produce a parser to use that's fine as well. But the main work is the next step, intermediate model. Parse trees are not adequate themselves, both because they do not fully resolve inter-dependencies (references are by ids, those need to be resolved to object references, just as an example), and because they are too tied to I am not familiar with |
This one can be closed now, right? |
Right, yes. |
Similar to existing
csv
andavro
modules' functionality that allows construction of schemas given a single POJO definition, it would make to allow construction ofProtobufSchema
from a POJO (class) definition.The text was updated successfully, but these errors were encountered: