The initFromSchema() method assumes that an object with a type of "array" is always non-null and can be iterated over with Array.prototype.filter(). However, a nullable array is perfectly valid in a JSON Schema.
I think that's a correct summary of what's going wrong here, but I'm not familiar enough with the codebase to say for sure.
Fixes #427
The
initFromSchema()
method assumes that an object with atype
of"array"
is always non-null and can be iterated over withArray.prototype.filter()
. However, a nullable array is perfectly valid in a JSON Schema.I think that's a correct summary of what's going wrong here, but I'm not familiar enough with the codebase to say for sure.