Skip to content

Support for Ingestion of Common JSON

Pre-release
Pre-release
Compare
Choose a tag to compare
@xmcqueen xmcqueen released this 29 Sep 03:48
· 69 commits to master since this release
5d44cdf

There is an increasing demand to ingesting common JSON into the avro-encoded systems.

This release adds support for accepting common JSON , so we can take JSON from regular (non-avro-enabled) applications and encode it into avro per a schema in the expected way. This was a problem because union-types were expected to be of a form that satisfies the avro json encoding spec:

avro spec: ["null", "string"]
common json: null, or "some string"
avro json encoded: null and {"string": "some string"}

Example code, and tests are included in union_test.go