Re:Traff: An open source format/service for live road traffi...
by magicalhippo on Thursday October 20, 2022 @07:52AM
(#33273275)
Tooling around JSON schema is lacking. For example, we have a fairly simple XSD which still requires the latest JSON schema version due to a choice element (IIRC), which Swagger doesn't fully support yet.
[ Parent
| on HN ]
Re:Traff: An open source format/service for live road traffi...
by jillesvangurp on Thursday October 20, 2022 @09:25AM
(#33274351)
I think the reason is that mostly people don't define schemas for their json to begin with.
Back when xml was still commonly used, xml schemas were optional as well. The notion of insisting on adding longish urls to every attribute and namespacing elements and attributes, kind of defeated the purpose of using xml. It made everything harder; including parsing, xsl transformations, xpath expressions, etc.