Self-defined Schema

2 views
Skip to first unread message

Brad P

unread,
Dec 21, 2009, 9:52:27 AM12/21/09
to JSON Schema
Greetings,

Very new to json schema. I was wondering if the spec allows multiple
'$schema' attributes? The php version of the validator seems to be
complaining about the following:

{
"$schema" : {
"properties" : {
"name" : {
"type" : "string"
},
"age" : {
"type" : "number",
"maximum" : 125,
"optional" : true
},
"auto" : {
"type" : "object"
}
},
"additionalProperties" : false,
"type" : "object"
},
"name" : "John Doe",
"age" : 13,
"auto" : {
"$schema" : {
"properties" : {
"make" : {
"type" : "string",
"optional" : false
},
"model" : {
"type" : "string"
}
},
"additionalProperties" : false,
"type" : "object"
},
"model" : "caravan"
}
}

It looks like the php code doesn't know how to handle multiple
'$schema'. Thanks in advance for any suggestions.

Reply all
Reply to author
Forward
0 new messages