trickyco.de : Orderly JSONSchema /2009/10/02/orderly-jsonschema?format=rss en-us 40 thoughts on software and other stuff Comment on Orderly JSONSchema by Ryan Kennedy <p>Instead of embedding types within types (the &#8220;address&#8221; type within the &#8220;person&#8221; type in your final example, for instance) can you reference types from elsewhere? I don&#8217;t know JSONSchema to know if it can do it either, I&#8217;m just wondering if I want to reuse the &#8220;address&#8221; type within a &#8220;business&#8221; type, am I going to have to declare it all over again or can I reuse a single declaration of an &#8220;address&#8221; type?</p> Fri, 02 Oct 2009 16:07:39 +0000 urn:uuid:d66158a2-c795-4933-99fe-1629e22d5650 http://trickyco.de/2009/10/02/orderly-jsonschema#comment-8 Comment on Orderly JSONSchema by Lloyd Hilaiel <p>yo ryan,</p> <p>yes you can. read the &#8220;Extending and Referencing&#8221; section of <a href="http://json-schema.org/" rel="nofollow">http://json-schema.org/</a>, lifting that bit up into orderly would perhaps be v0.</p> <p>lloyd</p> Fri, 02 Oct 2009 16:26:30 +0000 urn:uuid:7028b9d5-f8a1-49cd-a627-ff1b75b1d529 http://trickyco.de/2009/10/02/orderly-jsonschema#comment-9 Comment on Orderly JSONSchema by zeitgeist <p>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</p> Fri, 02 Oct 2009 17:08:20 +0000 urn:uuid:95d29b58-f6c8-41fa-8dc7-276f2290fa89 http://trickyco.de/2009/10/02/orderly-jsonschema#comment-10 Comment on Orderly JSONSchema by Zachary Zolton <p>Hmm&#8230; Looks strangely similar to a type definition in a programming language!</p> <p>BTW, I like the support for nested types. Many times when prototyping a system I don&#8217;t need to reuse the type definitions, so being forced to name things feels pointless.</p> Fri, 02 Oct 2009 17:36:13 +0000 urn:uuid:335e925c-f6b2-4693-945d-b695983689c6 http://trickyco.de/2009/10/02/orderly-jsonschema#comment-11 Comment on Orderly JSONSchema by Hatem Nassrat <p>I like this a lot.</p> Fri, 02 Oct 2009 17:43:07 +0000 urn:uuid:268d077e-5eae-4196-a5fa-77a13aaae86c http://trickyco.de/2009/10/02/orderly-jsonschema#comment-12 Comment on Orderly JSONSchema by Bill Dueber <p>Is there a way to specify object keys that are <em>not</em> 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?</p> Fri, 30 Oct 2009 18:10:33 +0000 urn:uuid:1586c953-7396-469e-abce-9f9a87b0bc2f http://trickyco.de/2009/10/02/orderly-jsonschema#comment-13 Comment on Orderly JSONSchema by Lloyd Hilaiel <p>Hi Bill,</p> <p>You would have to change your representation. JSONSchema doesn’t can’t express constraints like this - ranges or patterns of acceptable keys.</p> <p>lloyd</p> Wed, 04 Nov 2009 20:22:28 +0000 urn:uuid:6e1cebd1-df02-4be8-bcf8-b8893d2d4b46 http://trickyco.de/2009/10/02/orderly-jsonschema#comment-15