Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.9 KiB
74 lines
1.9 KiB
[
|
|
{
|
|
"description": "remote ref",
|
|
"schema": {"$ref": "http://localhost:1234/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://localhost:1234/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://localhost:1234/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://localhost:1234/",
|
|
"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
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|