Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Reference document: https://docs.mosip.io/1.2.0/id-lifecycle-management/id-schema

ID Schema document update to implement selected handles.

  1. Below links explain what is handle in detail:
    /wiki/spaces/PROD/pages/1392803883
    /wiki/spaces/DD/pages/1191674721

Need to define some changes in the Id-Schema in the respective environment:

Code Block
"selectedHandles": {
          "fieldCategory": "none",
          "format": "none",
          "type": "array",
          "items": { "type": "string" },
          "fieldType": "default"
        },

Once this is done, Next step would be choose what are the fields that can be marked as selected handle. For this need to enable

Code Block
“handle”: true

Let’s assume referenceIdentityNumber as a handle following changes required:

Code Block
"referenceIdentityNumber": {
          "bioAttributes": [],
          "validators": [
            {
              "validator": "^([0-9]{10,30})$",
              "arguments": [],
              "type": "regex"
            }
          ],
          "fieldCategory": "pvt",
          "format": "kyc",
          "type": "string",
          "fieldType": "default",
          "handle": true
        },

And similarly for email:

Code Block
"email": {
          "bioAttributes": [],
          "validators": [
            {
              "validator": "^[A-Za-z0-9_\\-]+(\\.[A-Za-z0-9_]+)*@[A-Za-z0-9_-]+(\\.[A-Za-z0-9_]+)*(\\.[a-zA-Z]{2,})$",
              "arguments": [],
              "type": "regex"
            }
          ],
          "fieldCategory": "pvt",
          "format": "none",
          "type": "string",
          "fieldType": "default",
          "handle": true
        },

These are the changes required to do in the Id-Schema in respective environment to implement selected handles feature.