This repository was archived by the owner on Sep 19, 2025. It is now read-only.

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?