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

38 lines
701 B
JSON
Raw Normal View History

2015-06-18 16:59:11 +03:00
[
{
"description": "root ref in remote ref (#13)",
2017-12-02 21:31:03 +03:00
"schema": {
"$id": "http://localhost:1234/issue13",
"type": "object",
"properties": {
"name": { "$ref": "name.json#/definitions/orNull" }
2015-06-18 16:59:11 +03:00
}
2017-12-02 21:31:03 +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
}
]
}
]