5 ms·
Because JSON-based schemas are excessively verbose making them painful to read and write, to the point where really nobody wants to do so. Consider: struc
by kentonv 3y ago
Because JSON-based schemas are excessively verbose making them painful to read and write, to the point where really nobody wants to do so.
Consider:
struct Person {
name @0 :Text;
age @1 :UInt16;
}
vs.:
"declarations": [
{
"name": "Person",
"kind": "struct",
"fields": [
{
"name": "name",
"type": "text",
"ordinal": 0
}, {
"name": "age",
"type": "uint16",
"ordinal": 1
}
]
}
]
- zamalek 3y agoAlso JSON schemas can represent the exact same type in multiple ways, meaning some form of normalization is required prior.