News for hackers. Stuff that matters.
Re:OpenAPI v3.1 and JSON Schema 2019-09 by no_wizard on Saturday February 29, 2020 @05:42PM (#22453721)
i think one of the major reasons JSON took this role from XML is it has a tighter syntax and easier to understand rules, so serialization, hydration and deserialization became easier to optimize over time. I know over the wire JSON packs more tightly than XML too and that used to matter a lot more than I might now depending on the end users of your app too. I think these validation specifications though are all trying to solve the same problem: describing your API to users without human interaction. It turns out to be a tough problem
Re:OpenAPI v3.1 and JSON Schema 2019-09 by buster on Sunday March 01, 2020 @05:34AM (#22456263)
Yes, JSON has not much rules. JSON schema on the other hand adds a lot of complexity again.
Re:OpenAPI v3.1 and JSON Schema 2019-09 by jrempel on Saturday February 29, 2020 @09:36PM (#22454745)
In my testing after compression json+xml were essentially identical for the same payload