1

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

banjara
  • 3,800
  • 3
  • 38
  • 61

1 Answers1

3

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.)

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216