4 ms·
JSON-schema, if you really need it http://tools.ietf.org/html/draft-zyp-json-schema-03 http://tools.ietf.org/html/draft-zyp-json-schema-03
by rorrr 15y ago
JSON-schema, if you really need it
http://tools.ietf.org/html/draft-zyp-json-schema-03 http://tools.ietf.org/html/draft-zyp-json-schema-03
- roel_v 15y agoI haven't been able to find any solid, broad implementations of anything that brings schemas to json - either this ietf standard or something else. Only some half-assed and not developed for years implementations for a single programming language. Are there implementation of the spec you link to?
- lost-theory 15y agoIt's not JSON-schema, but Rx is a schema validation tool for JSON/YAML/etc. that works with many languages: http://rx.codesimply.com/ http://rx.codesimply.com/
- roel_v 15y agoYes, this is one of the half-assed, half-dead efforts I was referring to. Last commit Jan 2010, and even that one touched only some files, previous commits are all from 2008. It only supports a few languages - no C++, no Java, no .Net. The website itself says on the first page "relying on any implementation in production would be a bad idea". Plus, Rx doesn't offer the same functionality XML Schema does, from what I can find (only does type checking, no element order/count, default values etc).