5 ms·
I really like this. In general, a well-supported non-crappy schema language for modern data exchange formats is long overdue (e.g. JSON Schema is horribly un-hu
by skrebbel 13y ago
I really like this. In general, a well-supported non-crappy schema language for modern data exchange formats is long overdue (e.g. JSON Schema is horribly un-human-friendly). The fact that they aim higher and allow for a much more detailed set of validations is great, IMO.
I hope that this becomes a success and gets implementations in many programming languages.
- FeloniousHam 13y agoFor "human-friendliness" (eg. hand-edited configs), I'm all in with YAML. AFAIC, JSON is strictly for machine to machine data transmission. While I think the idea is neat, a data language should not include processing logic. It's a wash where the constraints get specified, and in my experience, a single point of implementation is far more maintainable.
- nevi-me 13y ago> I really like this. In general, a well-supported non-crappy schema language for modern data exchange formats is long overdue (e.g. JSON Schema is horribly un-human-friendly). I think I'm a bit confused, is Q the actual schema or a validator of the schema? I can also validate a JSON document using JavaScript and respond with a true or false based on whether it meets certain criteria. So I think that there's something amiss with your statement above, specifically that "JSON Schema is horribly un-human-friendly". Doesn't Q take JSON and let the user know if it's correct or incorrect? WOuldn't JavaScript, or any other language at that, do the same?
- TheZenPsycho 13y agohave you seen orderly? http://orderly-json.org http://orderly-json.org
- vithlani 13y agoFor data exchange, what is wrong with using an ASN1 specified, BER encoded file? Genuine question...
- spacemanmatt 13y agoThe binary encodings are cumbersome and difficult to perfect.
- vithlani 13y agoIsn't it simply a matter of delegating it to a library -- the encoding and decoding I mean? I have had occasion to use Java and Python libraries for this and faced no problems.