37 lines
823 B
JSON
37 lines
823 B
JSON
[
|
|
{
|
|
"description": "id property in referenced schema in object that is not a schema (#63)",
|
|
"schemas": [
|
|
{
|
|
"type" : "object",
|
|
"properties": {
|
|
"title": { "$ref": "http://json-schema.org/draft-04/schema#/properties/title" }
|
|
}
|
|
},
|
|
{
|
|
"type" : "object",
|
|
"properties": {
|
|
"title": { "$ref": "http://json-schema.org/draft-06/schema#/properties/title" }
|
|
}
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"description": "empty object is valid",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "string is valid",
|
|
"data": { "title": "foo" },
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "number is invalid",
|
|
"data": { "title": 1 },
|
|
"valid": false
|
|
}
|
|
]
|
|
}
|
|
]
|