Closed gioragutt closed 5 years ago
No, I don't think it does :)
Generally speaking, how would you go about implementing something like this?
Frankly I have no idea - depends on what you want to achieve. How does it fail? Maybe you just need a custom serializer for this type?
Basically ObjectMapper does it’a work very stupidly-it iterates on all getters.
Soon as it goes to getSchema
, it fails on the first getter that throws an exception - in my case, getValueType
which throws something like this is not a map exception
.
I’m going to POC creating a derived ObjectMapper
which will specially handle Avro values. If this works, let there be a github repo :) if not, we’re gonna change the type to fully avro and save ourselves the time.
AFAIR you can specify which fields to ignore even without using things like custom serializers. However it is just a suggestion since I don't know your exact need. Let me close this issue here :)
I have a case where I want to parse a normal, non-avro class to json. I'm using
jackson
sObjectMapper
, which works for most classes, But fails when a class hasAvro
members.Does your library help with this?