Differences between IETF standard JSON schema and Avro schema

1.9k Views Asked by At

Please help me understand the differences between IETF standard JSON schema and Avro schema. I google a lot but couldn't find anything concrete.

1

There are 1 best solutions below

4
On

The key difference is this:

  • IETF JSON schemas are schemas for JSON values; i.e. JSON objects and JSON arrays

  • Avro schemas are schemas for Avro values.

Both JSON schemas and Avro schemas are expressed in JSON. But the type systems that they describe are different. For example, Avro has 6 kinds of complex types compared to JSON's 2 kinds.


A second difference is that IETF JSON schemas venture into areas such as validation (of values), schemas referencing other schemas and so forth. Thus, you could say that JSON schemas have a broader scope than Avro schemas. (But you don't have to make use of this if it isn't relevant to your use-cases.)