tag:trickyco.de,2005:/2009/10/02/orderly-jsonschema?format=atom trickyco.de : Orderly JSONSchema thoughts on software and other stuff 2009-10-02T16:07:39+00:00 Typo tag:trickyco.de,2005:Comment/8 2009-10-02T16:07:39+00:00 2009-10-02T16:07:39+00:00 Ryan Kennedy Comment on Orderly JSONSchema by Ryan Kennedy

Instead of embedding types within types (the “address” type within the “person” type in your final example, for instance) can you reference types from elsewhere? I don’t know JSONSchema to know if it can do it either, I’m just wondering if I want to reuse the “address” type within a “business” type, am I going to have to declare it all over again or can I reuse a single declaration of an “address” type?

tag:trickyco.de,2005:Comment/9 2009-10-02T16:26:30+00:00 2009-10-02T16:26:30+00:00 Lloyd Hilaiel Comment on Orderly JSONSchema by Lloyd Hilaiel

yo ryan,

yes you can. read the “Extending and Referencing” section of http://json-schema.org/, lifting that bit up into orderly would perhaps be v0.

lloyd

tag:trickyco.de,2005:Comment/10 2009-10-02T17:08:20+00:00 2009-10-02T17:08:20+00:00 zeitgeist Comment on Orderly JSONSchema by zeitgeist

Reminds me of thrift / protobuf a bit. probably an (extended) syntax based on thrift / protobuf will be sufficient. Imho this would be a nice thing to have, as we could take the schemas as a foundation for interfaces+data-type-definitions and vice-versa

tag:trickyco.de,2005:Comment/11 2009-10-02T17:36:13+00:00 2009-10-02T17:36:13+00:00 Zachary Zolton Comment on Orderly JSONSchema by Zachary Zolton

Hmm… Looks strangely similar to a type definition in a programming language!

BTW, I like the support for nested types. Many times when prototyping a system I don’t need to reuse the type definitions, so being forced to name things feels pointless.

tag:trickyco.de,2005:Comment/12 2009-10-02T17:43:07+00:00 2009-10-02T17:43:07+00:00 Hatem Nassrat Comment on Orderly JSONSchema by Hatem Nassrat

I like this a lot.

tag:trickyco.de,2005:Comment/13 2009-10-30T18:10:33+00:00 2009-10-30T18:10:33+00:00 Bill Dueber Comment on Orderly JSONSchema by Bill Dueber

Is there a way to specify object keys that are not constants (e.g., a set of employees keyed by employeeID), or do I have to turn it into an array with the emplID in each object?

tag:trickyco.de,2005:Comment/15 2009-11-04T20:22:28+00:00 2009-11-04T20:22:28+00:00 Lloyd Hilaiel Comment on Orderly JSONSchema by Lloyd Hilaiel

Hi Bill,

You would have to change your representation. JSONSchema doesn’t can’t express constraints like this - ranges or patterns of acceptable keys.

lloyd