refRemote.json revision 263646
1263646Sbapt[ 2263646Sbapt { 3263646Sbapt "description": "remote ref", 4263646Sbapt "schema": {"$ref": "http://localhost:1234/integer.json"}, 5263646Sbapt "tests": [ 6263646Sbapt { 7263646Sbapt "description": "remote ref valid", 8263646Sbapt "data": 1, 9263646Sbapt "valid": true 10263646Sbapt }, 11263646Sbapt { 12263646Sbapt "description": "remote ref invalid", 13263646Sbapt "data": "a", 14263646Sbapt "valid": false 15263646Sbapt } 16263646Sbapt ] 17263646Sbapt }, 18263646Sbapt { 19263646Sbapt "description": "fragment within remote ref", 20263646Sbapt "schema": {"$ref": "http://localhost:1234/subSchemas.json#/integer"}, 21263646Sbapt "tests": [ 22263646Sbapt { 23263646Sbapt "description": "remote fragment valid", 24263646Sbapt "data": 1, 25263646Sbapt "valid": true 26263646Sbapt }, 27263646Sbapt { 28263646Sbapt "description": "remote fragment invalid", 29263646Sbapt "data": "a", 30263646Sbapt "valid": false 31263646Sbapt } 32263646Sbapt ] 33263646Sbapt }, 34263646Sbapt { 35263646Sbapt "description": "ref within remote ref", 36263646Sbapt "schema": { 37263646Sbapt "$ref": "http://localhost:1234/subSchemas.json#/refToInteger" 38263646Sbapt }, 39263646Sbapt "tests": [ 40263646Sbapt { 41263646Sbapt "description": "ref within ref valid", 42263646Sbapt "data": 1, 43263646Sbapt "valid": true 44263646Sbapt }, 45263646Sbapt { 46263646Sbapt "description": "ref within ref invalid", 47263646Sbapt "data": "a", 48263646Sbapt "valid": false 49263646Sbapt } 50263646Sbapt ] 51263646Sbapt }, 52263646Sbapt { 53263646Sbapt "description": "change resolution scope", 54263646Sbapt "schema": { 55263646Sbapt "id": "http://localhost:1234/", 56263646Sbapt "items": { 57263646Sbapt "id": "folder/", 58263646Sbapt "items": {"$ref": "folderInteger.json"} 59263646Sbapt } 60263646Sbapt }, 61263646Sbapt "tests": [ 62263646Sbapt { 63263646Sbapt "description": "changed scope ref valid", 64263646Sbapt "data": [[1]], 65263646Sbapt "valid": true 66263646Sbapt }, 67263646Sbapt { 68263646Sbapt "description": "changed scope ref invalid", 69263646Sbapt "data": [["a"]], 70263646Sbapt "valid": false 71263646Sbapt } 72263646Sbapt ] 73263646Sbapt } 74263646Sbapt] 75