-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with converting json -> avro -> json for union of records #14
Comments
This converter will not map complex Unions, due to the fact that basic JSON payload doesn't provide type information for union fields. There is a pull request (allegro/hermes#749) in Hermes, which introduces Avro encoded JSON converter. Switching between conversion methods would be controlled by the For latter, correct request would look like: {
"someMainField":{
"recordB":{
"fieldB":"B"
}
}
} NOTE So if the schema had namespace: {
"someMainField":{
"pl.allegro.test.recordB":{
"fieldB":"B"
}
}
} |
@rprzystasz but I think the question has two legs:
I am trying to do step (2). Any help more than appreciated! |
worked out easier than I thought:
|
Hi,
why this test below failed?
Is it proper when json with "fieldB" is converting to other type of record (recordA) with default "fieldA" value?
The text was updated successfully, but these errors were encountered: