github.com/hyperledger/aries-framework-go@v0.3.2/test/aries-js-worker/fixtures/schema/schema.json (about) 1 { 2 "required": [ 3 "@context", 4 "type", 5 "credentialSubject", 6 "issuer", 7 "issuanceDate" 8 ], 9 "properties": { 10 "@context": { 11 "oneOf": [ 12 { 13 "type": "string", 14 "const": "https://www.w3.org/2018/credentials/v1" 15 }, 16 { 17 "type": "array", 18 "items": [ 19 { 20 "type": "string", 21 "const": "https://www.w3.org/2018/credentials/v1" 22 } 23 ], 24 "uniqueItems": true, 25 "additionalItems": { 26 "oneOf": [ 27 { 28 "type": "object" 29 }, 30 { 31 "type": "string" 32 } 33 ] 34 } 35 } 36 ] 37 }, 38 "id": { 39 "type": "string", 40 "format": "uri" 41 }, 42 "type": { 43 "oneOf": [ 44 { 45 "type": "array", 46 "minItems": 1, 47 "contains": { 48 "type": "string", 49 "pattern": "^VerifiableCredential$" 50 } 51 }, 52 { 53 "type": "string", 54 "pattern": "^VerifiableCredential$" 55 } 56 ] 57 }, 58 "credentialSubject": { 59 "anyOf": [ 60 { 61 "type": "array" 62 }, 63 { 64 "type": "object" 65 }, 66 { 67 "type": "string" 68 } 69 ] 70 }, 71 "issuer": { 72 "anyOf": [ 73 { 74 "type": "string", 75 "format": "uri" 76 }, 77 { 78 "type": "object", 79 "required": [ 80 "id" 81 ], 82 "properties": { 83 "id": { 84 "type": "string", 85 "format": "uri" 86 } 87 } 88 } 89 ] 90 }, 91 "issuanceDate": { 92 "type": "string", 93 "format": "date-time" 94 }, 95 "proof": { 96 "anyOf": [ 97 { 98 "$ref": "#/definitions/proof" 99 }, 100 { 101 "type": "array", 102 "items": { 103 "$ref": "#/definitions/proof" 104 } 105 }, 106 { 107 "type": "null" 108 } 109 ] 110 }, 111 "expirationDate": { 112 "type": [ 113 "string", 114 "null" 115 ], 116 "format": "date-time" 117 }, 118 "credentialStatus": { 119 "$ref": "#/definitions/typedID" 120 }, 121 "credentialSchema": { 122 "$ref": "#/definitions/typedIDs" 123 }, 124 "evidence": { 125 "$ref": "#/definitions/typedIDs" 126 }, 127 "refreshService": { 128 "$ref": "#/definitions/typedID" 129 } 130 }, 131 "definitions": { 132 "typedID": { 133 "anyOf": [ 134 { 135 "type": "null" 136 }, 137 { 138 "type": "object", 139 "required": [ 140 "id", 141 "type" 142 ], 143 "properties": { 144 "id": { 145 "type": "string", 146 "format": "uri" 147 }, 148 "type": { 149 "anyOf": [ 150 { 151 "type": "string" 152 }, 153 { 154 "type": "array", 155 "items": { 156 "type": "string" 157 } 158 } 159 ] 160 } 161 } 162 } 163 ] 164 }, 165 "typedIDs": { 166 "anyOf": [ 167 { 168 "$ref": "#/definitions/typedID" 169 }, 170 { 171 "type": "array", 172 "items": { 173 "$ref": "#/definitions/typedID" 174 } 175 }, 176 { 177 "type": "null" 178 } 179 ] 180 }, 181 "proof": { 182 "type": "object", 183 "required": [ 184 "type" 185 ], 186 "properties": { 187 "type": { 188 "type": "string" 189 } 190 } 191 } 192 } 193 }