The nested object error is not displaying
Schema: homePhone: { type: "object", required: ["phone_number", "country_code", "country"], properties: { phone_number: { type: "string", minLength: 1 }, country_code: { type: "string" }, country: { type: "string" }, }, },
UISchema:
{
type: "Control",
scope: "#/properties/homePhone",
renderer: "PhoneInputControl",
},
The error gets generated, but it is not available within the props of the component:
This is the error that was logged:
{
"instancePath": "/homePhone/phone_number",
"schemaPath": "#/properties/homePhone/properties/phone_number/minLength",
"keyword": "minLength",
"params": {
"limit": 1
},
"message": "must NOT have fewer than 1 characters",
"schema": 1,
"parentSchema": {
"type": "string",
"minLength": 1
},
"data": ""
}
These are the ControlProps that were logged out:
{
"uischema": {
"type": "Control",
"scope": "#/properties/homePhone",
"renderer": "PhoneInputControl"
},
"schema": {
"type": "object",
"required": [
"phone_number",
"country_code",
"country"
],
"properties": {
"country": {
"type": "string"
},
"country_code": {
"type": "string"
},
"phone_number": {
"type": "string",
"minLength": 1
}
}
},
"path": "homePhone",
"enabled": true,
"renderers": [
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
],
"cells": [
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
],
"id": "#/properties/homePhone",
"data": {
"phone_number": "",
"country_code": "1",
"country": "us"
},
"errors": "",
"label": "Home Phone",
"visible": true,
"required": true,
"config": {
"restrict": false,
"trim": false,
"showUnfocusedDescription": false,
"hideRequiredAsterisk": false
},
"rootSchema": {
"type": "object",
"required": [
"lastName",
"firstName",
"email",
"homePhone",
"mobilePhone",
"termsOfService"
],
"properties": {
"zip": {
"type": "string"
},
"city": {
"type": "string"
},
"email": {
"type": "string"
},
"state": {
"type": "string"
},
"title": {
"enum": [
"Mr",
"Mrs",
"Ms",
"Rabbi",
"Reb",
"Rebbetzin",
"Dr"
],
"type": [
"string",
"null"
]
},
"gender": {
"enum": [
"Male",
"Female"
],
"type": [
"string",
"null"
]
},
"address": {
"type": "string"
},
"company": {
"type": "string"
},
"lastName": {
"type": "string"
},
"optToSms": {
"type": "boolean"
},
"firstName": {
"type": "string"
},
"homePhone": {
"type": "object",
"required": [
"phone_number",
"country_code",
"country"
],
"properties": {
"country": {
"type": "string"
},
"country_code": {
"type": "string"
},
"phone_number": {
"type": "string",
"minLength": 1
}
}
},
"mobilePhone": {
"type": "object",
"required": [
"country_code",
"phone_number",
"country"
],
"properties": {
"country": {
"type": "string"
},
"country_code": {
"type": "string"
},
"phone_number": {
"type": "string",
"minLength": 1
}
}
},
"optToEmails": {
"type": "boolean"
},
"termsOfService": {
"type": "boolean"
},
"aliyahInformation": {
"type": "object",
"properties": {
"kohenLeviYisroel": {
"enum": [
"Kohen",
"Levi",
"Yisroel"
],
"type": "string"
},
"last_name_hebrew": {
"type": "string",
"title": "שם משפחה"
},
"first_name_hebrew": {
"type": "string",
"title": "שם"
},
"father_name_hebrew": {
"type": "string",
"title": "שם האב"
},
"mother_name_hebrew": {
"type": "string",
"title": "שם האם"
}
}
}
}
}
}

