Hi @smraa
Upon reviewing the ID Schema and UI specifications, we identified that the issue lies in the ID Schema — the newly added attributes are missing the required ‘type’ field. We have added type in the shared ID Schema. Kindly publish this updated schema along with the UI specifications and then attempt to create a packet.
Thank you
Chaitanya K
Team MOSIP
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "MOSIP base identity schema as starting point",
"additionalProperties": false,
"title": "MOSIP base identity",
"type": "object",
"definitions": {
"simpleType": {
"uniqueItems": true,
"additionalItems": false,
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"language",
"value"
],
"properties": {
"language": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"documentType": {
"additionalProperties": false,
"type": "object",
"properties": {
"format": {
"type": "string"
},
"type": {
"type": "string"
},
"value": {
"type": "string"
},
"refNumber": {
"type": [
"string",
"null"
]
}
}
},
"biometricsType": {
"additionalProperties": false,
"type": "object",
"properties": {
"format": {
"type": "string"
},
"version": {
"type": "number",
"minimum": 0
},
"value": {
"type": "string"
}
}
}
},
"properties": {
"identity": {
"additionalProperties": false,
"type": "object",
"required": [
"IDSchemaVersion",
"fullName",
"maritalStatus",
"dateOfBirth",
"placeOfBirth",
"gender",
"citizenship",
"addressLine",
"postalCode",
"city",
"region",
"country",
"phone",
"email",
"proofOfIdentity",
"individualBiometrics"
],
"properties": {
"IDSchemaVersion": {
"bioAttributes": [],
"fieldCategory": "none",
"format": "none",
"type": "number",
"fieldType": "default",
"minimum": 0
},
"UIN": {
"bioAttributes": [],
"fieldCategory": "none",
"format": "none",
"type": "string",
"fieldType": "default"
},
"fullName": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{2,200}$).*",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"maritalStatus": {
"bioAttributes": [],
"fieldCategory": "pvt",
"format": "",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"dateOfBirth": {
"bioAttributes": [],
"validators": [
{
"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[01])$",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"type": "string",
"fieldType": "default"
},
"placeOfBirth": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{0,200}$).*",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default"
},
"gender": {
"bioAttributes": [],
"fieldCategory": "pvt",
"format": "",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"residenceStatus": {
"bioAttributes": [],
"fieldCategory": "kyc",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"citizenship": {
"bioAttributes": [],
"fieldCategory": "kyc",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"job": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{0,50}$).*",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default"
},
"height": {
"bioAttributes": [],
"validators": [
{
"validator": "^(1[0-9][0-9]|2[0-4][0-9]|250)$",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default"
},
"eyeColor": {
"bioAttributes": [],
"fieldCategory": "pvt",
"format": "",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"fatherFullName": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{0,200}$).*",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"motherFullName": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{0,200}$).*",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"spouseFullName": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{0,200}$).*",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"addressLine": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{2,50}$).*",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"country": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{2,50}$).+",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"region": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{2,50}$).+",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"city": {
"bioAttributes": [],
"validators": [
{
"validator": "^(?=.{2,50}$).+",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"postalCode": {
"bioAttributes": [],
"validators": [
{
"validator": "^([0-9]{3,5})$",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"type": "string",
"fieldType": "default"
},
"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"
},
"phone": {
"bioAttributes": [],
"validators": [
{
"validator": "^(\\+)*([1-9]){1}\\d{3,16}$",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "none",
"type": "string",
"fieldType": "default"
},
"proofOfAddress": {
"bioAttributes": [],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/documentType"
},
"proofOfIdentity": {
"bioAttributes": [],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/documentType"
},
"proofOfRelationship": {
"bioAttributes": [],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/documentType"
},
"proofOfDateOfBirth": {
"bioAttributes": [],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/documentType"
},
"proofOfException": {
"bioAttributes": [],
"fieldCategory": "evidence",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/documentType"
},
"referenceIdentityNumber": {
"bioAttributes": [],
"validators": [
{
"validator": "^([0-9]{10,30})$",
"arguments": [],
"type": "regex"
}
],
"fieldCategory": "pvt",
"format": "kyc",
"type": "string",
"fieldType": "default"
},
"individualBiometrics": {
"bioAttributes": [
"leftEye",
"rightEye",
"rightIndex",
"rightLittle",
"rightRing",
"rightMiddle",
"leftIndex",
"leftLittle",
"leftRing",
"leftMiddle",
"leftThumb",
"rightThumb",
"face"
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/biometricsType"
},
"individualAuthBiometrics": {
"bioAttributes": [
"leftEye",
"rightEye",
"rightIndex",
"rightLittle",
"rightRing",
"rightMiddle",
"leftIndex",
"leftLittle",
"leftRing",
"leftMiddle",
"leftThumb",
"rightThumb",
"face"
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/biometricsType"
},
"introducerName": {
"bioAttributes": [],
"fieldCategory": "evidence",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/simpleType"
},
"introducerRID": {
"bioAttributes": [],
"fieldCategory": "evidence",
"format": "none",
"type": "string",
"fieldType": "default"
},
"introducerUIN": {
"bioAttributes": [],
"fieldCategory": "evidence",
"format": "none",
"type": "string",
"fieldType": "default"
},
"introducerBiometrics": {
"bioAttributes": [
"leftEye",
"rightEye",
"rightIndex",
"rightLittle",
"rightRing",
"rightMiddle",
"leftIndex",
"leftLittle",
"leftRing",
"leftMiddle",
"leftThumb",
"rightThumb",
"face"
],
"fieldCategory": "pvt",
"format": "none",
"fieldType": "default",
"$ref": "#/definitions/biometricsType"
}
}
}
}
}