-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
When trying to normalize a schema, if you don't provide the items on an array type element, the function throws an error.
To prevent this, I think that when trying to parse an array it should apply a default value to the items field if it is not provided.
if(result.type === "array") {
if (!result.items)
result.items = 'any';
result.items = this.normalize(result.items);
return result;
}Metadata
Metadata
Assignees
Labels
No labels