----
"properties" : {
"type" : {
"type" : [
{
"id" : "#simple-type",
"type" : "string",
"enum" : ["object", "array",
"string", "number", "boolean", "null", "any"]
},
"array"
],
----
Why the "id"? It complicates JSON schema implementations even more,
since it means you have to walk ALL the schema in order to map IDs.
Whereas this schema is perfectly accessible using JSON Pointer:
#/properties/type/type/0
and voilà! No need for a separate id...
--
Francis Galiegue, fgal...@gmail.com
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)