ajv/spec/tests/issues/13_root_ref_in_ref_in_remot...

47 lines
918 B
JSON
Raw Normal View History

2015-06-18 16:59:11 +03:00
[
{
"description": "root ref in remote ref (#13)",
2017-02-27 03:18:42 +03:00
"schemas": [
{
"id": "http://localhost:1234/issue13_1",
"type": "object",
"properties": {
"name": { "$ref": "name.json#/definitions/orNull" }
}
},
{
"$id": "http://localhost:1234/issue13_2",
"type": "object",
"properties": {
"name": { "$ref": "name.json#/definitions/orNull" }
}
2015-06-18 16:59:11 +03:00
}
2017-02-27 03:18:42 +03:00
],
2015-06-18 16:59:11 +03:00
"tests": [
{
"description": "string is valid",
"data": {
"name": "foo"
},
"valid": true
},
{
"description": "null is valid",
"data": {
"name": null
},
"valid": true
},
{
"description": "object is invalid",
"data": {
"name": {
"name": null
}
},
"valid": false
}
]
}
]