1[ 2 { 3 "description": "remote ref", 4 "schema": { 5 "$ref": "integer.json" 6 }, 7 "tests": [ 8 { 9 "description": "remote ref valid", 10 "data": 1, 11 "valid": true 12 }, 13 { 14 "description": "remote ref invalid", 15 "data": "a", 16 "valid": false 17 } 18 ] 19 }, 20 { 21 "description": "fragment within remote ref", 22 "schema": { 23 "$ref": "subSchemas.json#/integer" 24 }, 25 "tests": [ 26 { 27 "description": "remote fragment valid", 28 "data": 1, 29 "valid": true 30 }, 31 { 32 "description": "remote fragment invalid", 33 "data": "a", 34 "valid": false 35 } 36 ] 37 }, 38 { 39 "description": "ref within remote ref", 40 "schema": { 41 "$ref": "refRemoteSchema.json" 42 }, 43 "tests": [ 44 { 45 "description": "ref within ref valid", 46 "data": 1, 47 "valid": true 48 }, 49 { 50 "description": "ref within ref invalid", 51 "data": "a", 52 "valid": false 53 } 54 ] 55 }, 56 { 57 "description": "change resolution scope", 58 "schema": { 59 "items": { 60 "id": "extra/folder/", 61 "items": { 62 "$ref": "folderInteger.json" 63 } 64 } 65 }, 66 "tests": [ 67 { 68 "description": "changed scope ref valid", 69 "data": [ 70 [ 71 1 72 ] 73 ], 74 "valid": true 75 }, 76 { 77 "description": "changed scope ref invalid", 78 "data": [ 79 [ 80 "a" 81 ] 82 ], 83 "valid": false 84 } 85 ] 86 }, 87 { 88 "description": "sub directory reference with ref", 89 "schema": { 90 "$ref": "self_ref/../subSchemas.json#/integer" 91 }, 92 "tests": [ 93 { 94 "description": "remote fragment valid", 95 "data": 1, 96 "valid": true 97 }, 98 { 99 "description": "remote fragment invalid", 100 "data": "a", 101 "valid": false 102 } 103 ] 104 }, 105 { 106 "description": "domain reference with ref", 107 "schema": { 108 "$ref": "/draft4/integer.json" 109 }, 110 "tests": [ 111 { 112 "description": "remote ref valid", 113 "data": 1, 114 "valid": true 115 }, 116 { 117 "description": "remote ref invalid", 118 "data": "a", 119 "valid": false 120 } 121 ] 122 } 123] 124