bpdusk / jsonschema

Automatically exported from code.google.com/p/jsonschema
0 stars 0 forks source link

Complex types not suported by jsonschema.js #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
http://groups.google.com/group/json-schema/msg/86a0c5ae17423919

Types as defined in this message are not supported.

Original issue reported on code.google.com by jacob.to...@gmail.com on 10 Nov 2008 at 7:46

GoogleCodeExporter commented 8 years ago
The example in the message wasn't really a valid schema, it should look like:
{type:[
            {type:"object", properties:{name:{type:"string"}, id:{type:"integer"}},
additionalProperties:false}, 
            {type:"object", properties:{brand:{type:"string"}, id:{type:"integer"}},
additionalProperties:false}]
        }
Which should work in the latest version

Original comment by kris...@gmail.com on 16 Apr 2009 at 8:37