ajv/spec/tests/issues/14_ref_in_remote_ref_with_i...

73 lines
1.4 KiB
JSON

[
{
"description": "ref in remote ref with ids",
"schemas": [
{
"id": "http://localhost:1234/issue14a_1.json",
"type": "array",
"items": { "$ref": "foo.json" }
},
{
"$id": "http://localhost:1234/issue14a_2.json",
"type": "array",
"items": { "$ref": "foo.json" }
}
],
"tests": [
{
"description": "string is valid",
"data": [
{
"bar": "any string"
}
],
"valid": true
},
{
"description": "not string is invalid",
"data": [
{
"bar": 1
}
],
"valid": false
}
]
},
{
"description": "remote ref in definitions in remote ref with ids (#14)",
"schemas": [
{
"id": "http://localhost:1234/issue14b_1.json",
"type": "array",
"items": { "$ref": "buu.json#/definitions/buu" }
},
{
"$id": "http://localhost:1234/issue14b_2.json",
"type": "array",
"items": { "$ref": "buu.json#/definitions/buu" }
}
],
"tests": [
{
"description": "string is valid",
"data": [
{
"bar": "any string"
}
],
"valid": true
},
{
"description": "not string is invalid",
"data": [
{
"bar": 1
}
],
"valid": false
}
]
}
]