Closed jojenki closed 11 years ago
The grammar used to make these diagrams was:
Definition ::= '{' ObjectType '}' | '{' ArrayType '}'
Type ::= (BooleanType | StringType | NumberType | ObjectType | ArrayType | RemoteSchema) Doc? Optional?
Doc ::= '"doc":' string
Optional ::= '"optional":' ( 'true' | 'false' )
BooleanType ::= '"type":"boolean"'
NumberType ::= '"type":"number"'
StringType ::= '"type":"string"'
ObjectType ::= '"type":"object","schema":[' Fields? ']'
Fields ::= '{' ( '"name":' string ',' Type | RemoteSchema ) '}' ( ',' Fields )?
ArrayType ::= '"type":"array",' ( ConstTypeArray | ConstLengthArray )
ConstTypeArray ::= '"constType":{' Type '}'
ConstLengthArray ::= '"constLength":[' Types? ']'
Types ::= '{' Type '}' ( ',' Types )?
RemoteSchema ::= '"$ref":' string
The site used to generate these was: http://railroad.my28msec.com/rr/ui
Add diagram images to the wiki.