Revision 2015.9, September 2015
This specification defines a method of writing OGDL documents that act as schemas for other OGDL documents. A schema is a definition of a type. Some basic types are already defined, and schemas are just complex types.
This specification is far from finished. The use of schemas in the context of OGDL has yet to be proved useful.
boolean | bool true | false string Unicode string int Integer (unspecified size) float Floating point number (unspecified size) binary Binary object
!types
email "/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$./"
visa-card "/^4[0-9]{12}(?:[0-9]{3})?$/"
string-100
!string max-length 100
contact*
name !string-100
email !email
id !int
visa !visa-card
notes *