Config-UCL
view release on metacpan or search on metacpan
libucl-0.8.1/tests/schema/refRemote.json view on Meta::CPAN
[
{
"description": "remote ref",
"schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"},
"tests": [
{
"description": "remote ref valid",
"data": 1,
"valid": true
},
{
"description": "remote ref invalid",
"data": "a",
"valid": false
}
]
},
{
"description": "fragment within remote ref",
"schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"},
"tests": [
{
"description": "remote fragment valid",
"data": 1,
"valid": true
},
{
"description": "remote fragment invalid",
"data": "a",
"valid": false
}
]
},
{
"description": "ref within remote ref",
"schema": {
"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger"
},
"tests": [
{
"description": "ref within ref valid",
"data": 1,
"valid": true
},
{
"description": "ref within ref invalid",
"data": "a",
"valid": false
}
]
}
/*
{
"description": "change resolution scope",
"schema": {
"id": "http://highsecure.ru/ucl-schema/remotes/",
"items": {
"id": "folder/",
"items": {"$ref": "folderInteger.json"}
}
},
"tests": [
{
"description": "changed scope ref valid",
"data": [[1]],
"valid": true
},
{
"description": "changed scope ref invalid",
"data": [["a"]],
"valid": false
}
]
}
*/
]
( run in 0.742 second using v1.01-cache-2.11-cpan-364913b4093 )