[dojo-contributors] dojo.data Schema API

Jon Sykes lists at jpsykes.com
Mon Aug 27 08:54:41 EDT 2007

As much as schema's seem to drive terror into the souls of many.

You could almost have a converter that can take a JSON schema and  
convert it into some sort of data store that can then have a renderer  
associated with it.

I'd be more than happy to look into this further or help out in any way.

One of my early research found some interest work by Robert Cerny...


Although at the time of was wary of it's JS centric nature (I was  
hoping to find a JSON schema structure that could be language  
independent, it might be worth revisiting in some way for a dojox  
widget of sorts.


On Aug 26, 2007, at 4:58 PM, Alex Russell wrote:

> On Tuesday 21 August 2007 2:04 pm, Jon Sykes wrote:
>> Brian,
>> This looks very interesting, and along similar lines to something I
>> was playing around with a while ago for http://microjson.org/ the
>> idea here was to try to convert and extend some of the microformat
>> work into the JSON world, with the same aim.
> This is an awesome idea! We should probably have MF->JSON converters
> somewhere in DojoX...should be simple enough to parse w/ dojo.query()
> and then you can just shove them into a data store to visualize  
> them w/
> Dojo widgets where CSS doesn't do the whole job.
> What do you think?
> Regards
>> That you could end up
>> with having code (server or client) that could identify common
>> 'chunks' of data out of a larger 'chunks' of data because it followed
>> some loose JSON data form structure.
>> My idea being that if everyone had for example "people data"
>> structured the same way (jCard) in open API type services, it would
>> make writing data parsers for mashup style applications all that
>> easier.
>> I did a bunch of research on creating JSON schema's (damned use the
>> phrase Schema around ex-XML folk who are now JSON converts and they
>> get VERY angry.)  I wanted to be able to have a way of showing the
>> expected format (not necessarily for validation purposes - although
>> that could open up other interesting doors of possibility).
>> I'd love to see where this goes, and if I can do anything to help
>> don't hesitate to ask.
> -- 
> Alex Russell
> alex at sitepen.com     A99F 8785 F491 D5FD 04D7 ACD9 4158 FFDF 2894 6876
> alex at dojotoolkit.org BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 9723

More information about the dojo-contributors mailing list