Re: Skip Namespace while Decoding Union Types from JSON

2022-12-05 Thread Oscar Westra van Holthe - Kind
Hi Chirag, Please note that json encoded Avro is NOT the same as plain json. It's a special json dialect that is generally not compatible with regular json data. Sad news: there exists no json parser that yields Avro records. Json simply lacks the context information that Avro union parsing needs

Skip Namespace while Decoding Union Types from JSON

2022-12-05 Thread Chirag Dewan
Hello, My system is receiving JSON data serialized from JSON schemas. I am trying to represent the *minProperties *and *maxProperties *types in JSON schema in AVRO using Union types. But the problem is, AVRO JSON decoder expect the Union branch to be present in data and it searches the union type