Table Schema vs JSON Schema - what are the differences and which is preferable #614
-
@dafeder asked:
It's an excellent question and one we've thought about quite a bit (table schema and json schema) And when we started json schema wasn't there. And we ourselves obviously use JSON Schema to define the data The shortest answer would be: if you are doing pure tables Table Schema is probably better. If you have data with nested structures then JSON Schema is better. Table Schema > JSON SchemaThe main pros for table schema vs JSON schema is things like
But it's maybe more about the tooling than the schema per se e.g. for Table Schema you ahve goodtables (python and js etc) which is much more oriented to validating tabular data than e.g. json schema validators in my experience ... (e.g. goodtables has skip_rows etc etc). All the kind of stuff you have when working with data (csv, etc) that is less relevant to json data. Also i would say that json schema is now somewhat more complex. you have constraints e.g. oneof etc that are relevant for json schema but less so for tabular data (and which imply both engineering and performance implications). JSON Schema > Table Schema
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@lwinfree @rufuspollock |
Beta Was this translation helpful? Give feedback.
@lwinfree @rufuspollock
There is both question and answer in the same post so it cannot be marked as an answer. I think we just need to split it.
THE ANSWER