-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Using the following description throws and unexpected error:
{
"type": "object",
"fields": {
"testKey": {
"type": "object",
"required": true,
"fields": {
"anotherTest": [
{
"type": "object",
"required": true,
"fields": {
"testField": {
"type": "string",
"required": true
},
}
}
]
}
}
}
}
schema.validate({ testKey: {} }, (err, res) => {...
This throws the following error:
Cannot read property 'testField' of undefined
Is there something wrong in the descriptor or is there something else to configure to make this validation work?
Metadata
Metadata
Assignees
Labels
No labels