News for hackers. Stuff that matters.
Re:The rise and rise of JSON (2017) by humbleMouse on Friday August 24, 2018 @02:57AM (#17833258)
Avro json schemas and jackson json annotation for POJOS makes json object schemas easy to implement. Versioned object repos make great shared schemas and are easier to manage than xsds. (imo)
Re:The rise and rise of JSON (2017) by lmm on Friday August 24, 2018 @05:23AM (#17833775)
Anything would be better than XSD (though I don't think JVM-only is a good idea), but with an object you still don't necessarily know what kind of changes are going to be forward compatible or not. The only thing I've had any success with is something like Thrift or Protocol Buffers, where the canonical definition of your objects is a terse, Algol-like syntax but one that's been designed explicitly with version compatibility in mind, and you know exactly what changes do or don't break compatibility.