3 ms·
meta: their schema seems to be JSON instances plus comments. http://camlistore.org/code/?p=camlistore.git;a=tree;f=doc/schema;h=d36db16e00901fb9a1e1115b7347bfc4
by 6ren 16y ago
meta: their schema seems to be JSON instances plus comments. http://camlistore.org/code/?p=camlistore.git;a=tree;f=doc/schema;h=d36db16e00901fb9a1e1115b7347bfc47efe8192;hb=master http://camlistore.org/code/?p=camlistore.git;a=tree;f=doc/sc...
This is probably just a temporary notation, but perhaps it's clear enough for ongoing use?
Optional/required is handled by comments; JSON "[ ]" syntax indicates lists - but it's unclear if the contents represent a repeated group, like (abc)* , or alternatives, like (a|b|c)*; alternatives in general don't seem to be handled - in general, alternatives could also appear as the value of a field, not just in a list.