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

38 lines
701 B
JSON

[
{
"description": "root ref in remote ref (#13)",
"schema": {
"$id": "http://localhost:1234/issue13",
"type": "object",
"properties": {
"name": { "$ref": "name.json#/definitions/orNull" }
}
},
"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
}
]
}
]