/
ID Schema

Data Types

  • simpleType - stores multiple strings with language code

  • documentType - stores document file details such as,

    • format - extension

    • type - document category type

    • value - the name of the document

    • refNumber - reference number of the document

  • biometricType - to store biometrics file details such as,

    • format - format of the file

    • version - version of the file

    • value - the name of the file

  • string

  • number

Attributes

  • bioAttributes - array of biometric subtypes to be captured 

  • fieldCategory - pvt

  • fieldType - dynamic or default

  • $ref - if we have a reference data type

  • type - data type

  • validator - data validator

    • langCode - language specific validator

    • validator. - validator rule

    • arguments - additional arguments for the validator

    • type - type of validator

  • minimum - minimum value in case of number data type

Sample ID Schema

1{ 2 "$schema":"http:\/\/json-schema.org\/draft-07\/schema#", 3 "description":"string", 4 "additionalProperties":false, 5 "title":"string", 6 "type":"object", 7 "definitions":{ 8 "simpleType":{ 9 "uniqueItems":true, 10 "additionalItems":false, 11 "type":"array", 12 "items":{ 13 "additionalProperties":false, 14 "type":"object", 15 "required":[ 16 "language", 17 "value" 18 ], 19 "properties":{ 20 "language":{ 21 "type":"string" 22 }, 23 "value":{ 24 "type":"string" 25 } 26 } 27 } 28 }, 29 "documentType":{ 30 "additionalProperties":false, 31 "type":"object", 32 "required":[ 33 "format", 34 "type", 35 "value" 36 ], 37 "properties":{ 38 "refNumber":{ 39 "type":"string" 40 }, 41 "format":{ 42 "type":"string" 43 }, 44 "type":{ 45 "type":"string" 46 }, 47 "value":{ 48 "type":"string" 49 } 50 } 51 }, 52 "biometricsType":{ 53 "additionalProperties":false, 54 "type":"object", 55 "properties":{ 56 "format":{ 57 "type":"string" 58 }, 59 "version":{ 60 "type":"number", 61 "minimum":0 62 }, 63 "value":{ 64 "type":"string" 65 } 66 } 67 } 68 }, 69 "properties":{ 70 "identity":{ 71 "additionalProperties":false, 72 "type":"object", 73 "required":[ 74 "fullName", 75 "gender", 76 "dateOfBirth", 77 "phone", 78 "email", 79 "residenceStatus", 80 "state", 81 "city", 82 "locality", 83 "postalCode", 84 "proofOfConsent", 85 "proofOfIdentity", 86 "proofOfDateOfBirth" 87 ], 88 "properties":{ 89 "proofOfAddress":{ 90 "bioAttributes":[ 91 92 ], 93 "fieldCategory":"pvt", 94 "format":"none", 95 "fieldType":"default", 96 "$ref":"#\/definitions\/documentType" 97 }, 98 "gender":{ 99 "bioAttributes":[ 100 101 ], 102 "fieldCategory":"pvt", 103 "format":"", 104 "fieldType":"dynamic", 105 "$ref":"#\/definitions\/simpleType" 106 }, 107 "city":{ 108 "bioAttributes":[ 109 110 ], 111 "validators":[ 112 { 113 "langCode":null, 114 "validator":"^(?=.{0,50}$).*", 115 "arguments":[ 116 117 ], 118 "type":"regex" 119 } 120 ], 121 "fieldCategory":"pvt", 122 "format":"none", 123 "fieldType":"default", 124 "$ref":"#\/definitions\/simpleType" 125 }, 126 "proofOfConsent":{ 127 "bioAttributes":[ 128 129 ], 130 "fieldCategory":"pvt", 131 "format":"none", 132 "fieldType":"default", 133 "$ref":"#\/definitions\/documentType" 134 }, 135 "postalCode":{ 136 "bioAttributes":[ 137 138 ], 139 "validators":[ 140 { 141 "langCode":null, 142 "validator":"^(?=.{0,50}$).*", 143 "arguments":[ 144 145 ], 146 "type":"regex" 147 } 148 ], 149 "fieldCategory":"pvt", 150 "format":"none", 151 "type":"string", 152 "fieldType":"default" 153 }, 154 "proofOfException-1":{ 155 "bioAttributes":[ 156 157 ], 158 "fieldCategory":"evidence", 159 "format":"none", 160 "fieldType":"default", 161 "$ref":"#\/definitions\/documentType" 162 }, 163 "individualBiometrics":{ 164 "bioAttributes":[ 165 "leftEye", 166 "rightEye", 167 "rightIndex", 168 "rightLittle", 169 "rightRing", 170 "rightMiddle", 171 "leftIndex", 172 "leftLittle", 173 "leftRing", 174 "leftMiddle", 175 "leftThumb", 176 "rightThumb", 177 "face" 178 ], 179 "fieldCategory":"pvt", 180 "format":"none", 181 "fieldType":"default", 182 "$ref":"#\/definitions\/biometricsType" 183 }, 184 "proofOfDateOfBirth":{ 185 "bioAttributes":[ 186 187 ], 188 "fieldCategory":"pvt", 189 "format":"none", 190 "fieldType":"default", 191 "$ref":"#\/definitions\/documentType" 192 }, 193 "residenceStatus":{ 194 "bioAttributes":[ 195 196 ], 197 "fieldCategory":"kyc", 198 "format":"none", 199 "fieldType":"dynamic", 200 "$ref":"#\/definitions\/simpleType" 201 }, 202 "state":{ 203 "bioAttributes":[ 204 205 ], 206 "validators":[ 207 { 208 "langCode":null, 209 "validator":"^(?=.{0,50}$).*", 210 "arguments":[ 211 212 ], 213 "type":"regex" 214 } 215 ], 216 "fieldCategory":"pvt", 217 "format":"none", 218 "fieldType":"default", 219 "$ref":"#\/definitions\/simpleType" 220 }, 221 "email":{ 222 "bioAttributes":[ 223 224 ], 225 "validators":[ 226 { 227 "langCode":null, 228 "validator":"^[A-Za-z0-9_\\-]+(\\.[A-Za-z0-9_]+)*@[A-Za-z0-9_-]+(\\.[A-Za-z0-9_]+)*(\\.[a-zA-Z]{2,})$", 229 "arguments":[ 230 231 ], 232 "type":"regex" 233 } 234 ], 235 "fieldCategory":"pvt", 236 "format":"none", 237 "type":"string", 238 "fieldType":"default" 239 }, 240 "address":{ 241 "bioAttributes":[ 242 243 ], 244 "validators":[ 245 { 246 "langCode":null, 247 "validator":"^(?=.{0,50}$).*", 248 "arguments":[ 249 250 ], 251 "type":"regex" 252 } 253 ], 254 "fieldCategory":"pvt", 255 "format":"none", 256 "fieldType":"default", 257 "$ref":"#\/definitions\/simpleType" 258 }, 259 "parentOrGuardianRID":{ 260 "bioAttributes":[ 261 262 ], 263 "fieldCategory":"evidence", 264 "format":"none", 265 "type":"string", 266 "fieldType":"default" 267 }, 268 "parentOrGuardianBiometrics":{ 269 "bioAttributes":[ 270 "leftEye", 271 "rightEye", 272 "rightIndex", 273 "rightLittle", 274 "rightRing", 275 "rightMiddle", 276 "leftIndex", 277 "leftLittle", 278 "leftRing", 279 "leftMiddle", 280 "leftThumb", 281 "rightThumb", 282 "face" 283 ], 284 "fieldCategory":"pvt", 285 "format":"none", 286 "fieldType":"default", 287 "$ref":"#\/definitions\/biometricsType" 288 }, 289 "locality":{ 290 "bioAttributes":[ 291 292 ], 293 "validators":[ 294 { 295 "langCode":null, 296 "validator":"^(?=.{0,50}$).*", 297 "arguments":[ 298 299 ], 300 "type":"regex" 301 } 302 ], 303 "fieldCategory":"pvt", 304 "format":"none", 305 "fieldType":"default", 306 "$ref":"#\/definitions\/simpleType" 307 }, 308 "fullName":{ 309 "bioAttributes":[ 310 311 ], 312 "validators":[ 313 { 314 "langCode":null, 315 "validator":"^(?=.{3,50}$).*", 316 "arguments":[ 317 318 ], 319 "type":"regex" 320 } 321 ], 322 "fieldCategory":"pvt", 323 "format":"none", 324 "fieldType":"default", 325 "$ref":"#\/definitions\/simpleType" 326 }, 327 "dateOfBirth":{ 328 "bioAttributes":[ 329 330 ], 331 "validators":[ 332 { 333 "langCode":null, 334 "validator":"^(1869|18[7-9][0-9]|19[0-9][0-9]|20[0-9][0-9])\/([0][1-9]|1[0-2])\/([0][1-9]|[1-2][0-9]|3[0-1])$", 335 "arguments":[ 336 337 ], 338 "type":"regex" 339 } 340 ], 341 "fieldCategory":"pvt", 342 "format":"none", 343 "type":"string", 344 "fieldType":"default" 345 }, 346 "individualAuthBiometrics":{ 347 "bioAttributes":[ 348 "leftEye", 349 "rightEye", 350 "rightIndex", 351 "rightLittle", 352 "rightRing", 353 "rightMiddle", 354 "leftIndex", 355 "leftLittle", 356 "leftRing", 357 "leftMiddle", 358 "leftThumb", 359 "rightThumb", 360 "face" 361 ], 362 "fieldCategory":"pvt", 363 "format":"none", 364 "fieldType":"default", 365 "$ref":"#\/definitions\/biometricsType" 366 }, 367 "parentOrGuardianUIN":{ 368 "bioAttributes":[ 369 370 ], 371 "fieldCategory":"evidence", 372 "format":"none", 373 "type":"string", 374 "fieldType":"default" 375 }, 376 "proofOfIdentity":{ 377 "bioAttributes":[ 378 379 ], 380 "fieldCategory":"pvt", 381 "format":"none", 382 "fieldType":"default", 383 "$ref":"#\/definitions\/documentType" 384 }, 385 "IDSchemaVersion":{ 386 "bioAttributes":[ 387 388 ], 389 "fieldCategory":"none", 390 "format":"none", 391 "type":"number", 392 "fieldType":"default", 393 "minimum":0 394 }, 395 "proofOfException":{ 396 "bioAttributes":[ 397 398 ], 399 "fieldCategory":"evidence", 400 "format":"none", 401 "fieldType":"default", 402 "$ref":"#\/definitions\/documentType" 403 }, 404 "phone":{ 405 "bioAttributes":[ 406 407 ], 408 "validators":[ 409 { 410 "langCode":null, 411 "validator":"([6-9]{1})([0-9]{9})$", 412 "arguments":[ 413 414 ], 415 "type":"regex" 416 } 417 ], 418 "fieldCategory":"pvt", 419 "format":"none", 420 "type":"string", 421 "fieldType":"default" 422 }, 423 "proofOfRelationship":{ 424 "bioAttributes":[ 425 426 ], 427 "fieldCategory":"pvt", 428 "format":"none", 429 "fieldType":"default", 430 "$ref":"#\/definitions\/documentType" 431 }, 432 "UIN":{ 433 "bioAttributes":[ 434 435 ], 436 "fieldCategory":"none", 437 "format":"none", 438 "type":"string", 439 "fieldType":"default" 440 } 441 } 442 } 443 } 444}