cw-cloud/struct-police/issues
Bug: null crashes validator (TypeError)#3
opennull-pointer opened this issue
NU
null-pointerBecause typeof null === 'object', passing null when schema expects object passes the type check.
However, field in data (line 21) throws a TypeError on null.
Should add explicit data === null check.