1*ddca081dSBaptiste Daroussin[ 2*ddca081dSBaptiste Daroussin { 3*ddca081dSBaptiste Daroussin "description": "remote ref", 4*ddca081dSBaptiste Daroussin "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"}, 5*ddca081dSBaptiste Daroussin "tests": [ 6*ddca081dSBaptiste Daroussin { 7*ddca081dSBaptiste Daroussin "description": "remote ref valid", 8*ddca081dSBaptiste Daroussin "data": 1, 9*ddca081dSBaptiste Daroussin "valid": true 10*ddca081dSBaptiste Daroussin }, 11*ddca081dSBaptiste Daroussin { 12*ddca081dSBaptiste Daroussin "description": "remote ref invalid", 13*ddca081dSBaptiste Daroussin "data": "a", 14*ddca081dSBaptiste Daroussin "valid": false 15*ddca081dSBaptiste Daroussin } 16*ddca081dSBaptiste Daroussin ] 17*ddca081dSBaptiste Daroussin }, 18*ddca081dSBaptiste Daroussin { 19*ddca081dSBaptiste Daroussin "description": "fragment within remote ref", 20*ddca081dSBaptiste Daroussin "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"}, 21*ddca081dSBaptiste Daroussin "tests": [ 22*ddca081dSBaptiste Daroussin { 23*ddca081dSBaptiste Daroussin "description": "remote fragment valid", 24*ddca081dSBaptiste Daroussin "data": 1, 25*ddca081dSBaptiste Daroussin "valid": true 26*ddca081dSBaptiste Daroussin }, 27*ddca081dSBaptiste Daroussin { 28*ddca081dSBaptiste Daroussin "description": "remote fragment invalid", 29*ddca081dSBaptiste Daroussin "data": "a", 30*ddca081dSBaptiste Daroussin "valid": false 31*ddca081dSBaptiste Daroussin } 32*ddca081dSBaptiste Daroussin ] 33*ddca081dSBaptiste Daroussin }, 34*ddca081dSBaptiste Daroussin { 35*ddca081dSBaptiste Daroussin "description": "ref within remote ref", 36*ddca081dSBaptiste Daroussin "schema": { 37*ddca081dSBaptiste Daroussin "$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger" 38*ddca081dSBaptiste Daroussin }, 39*ddca081dSBaptiste Daroussin "tests": [ 40*ddca081dSBaptiste Daroussin { 41*ddca081dSBaptiste Daroussin "description": "ref within ref valid", 42*ddca081dSBaptiste Daroussin "data": 1, 43*ddca081dSBaptiste Daroussin "valid": true 44*ddca081dSBaptiste Daroussin }, 45*ddca081dSBaptiste Daroussin { 46*ddca081dSBaptiste Daroussin "description": "ref within ref invalid", 47*ddca081dSBaptiste Daroussin "data": "a", 48*ddca081dSBaptiste Daroussin "valid": false 49*ddca081dSBaptiste Daroussin } 50*ddca081dSBaptiste Daroussin ] 51*ddca081dSBaptiste Daroussin } 52*ddca081dSBaptiste Daroussin/* 53*ddca081dSBaptiste Daroussin { 54*ddca081dSBaptiste Daroussin "description": "change resolution scope", 55*ddca081dSBaptiste Daroussin "schema": { 56*ddca081dSBaptiste Daroussin "id": "http://highsecure.ru/ucl-schema/remotes/", 57*ddca081dSBaptiste Daroussin "items": { 58*ddca081dSBaptiste Daroussin "id": "folder/", 59*ddca081dSBaptiste Daroussin "items": {"$ref": "folderInteger.json"} 60*ddca081dSBaptiste Daroussin } 61*ddca081dSBaptiste Daroussin }, 62*ddca081dSBaptiste Daroussin "tests": [ 63*ddca081dSBaptiste Daroussin { 64*ddca081dSBaptiste Daroussin "description": "changed scope ref valid", 65*ddca081dSBaptiste Daroussin "data": [[1]], 66*ddca081dSBaptiste Daroussin "valid": true 67*ddca081dSBaptiste Daroussin }, 68*ddca081dSBaptiste Daroussin { 69*ddca081dSBaptiste Daroussin "description": "changed scope ref invalid", 70*ddca081dSBaptiste Daroussin "data": [["a"]], 71*ddca081dSBaptiste Daroussin "valid": false 72*ddca081dSBaptiste Daroussin } 73*ddca081dSBaptiste Daroussin ] 74*ddca081dSBaptiste Daroussin } 75*ddca081dSBaptiste Daroussin*/ 76*ddca081dSBaptiste Daroussin] 77