orbitjs / orbit

Composable data framework for ambitious web applications.
https://orbitjs.com
MIT License
2.33k stars 134 forks source link

`validateObject` should not accept `null` object #859

Closed dgeb closed 3 years ago

dgeb commented 3 years ago

Credit to @joelgallant for noticing this oversight.

This won't have practical implications when used to validate attributes of type object because null will be caught first.

Regardless, the object validator should work well on its own and should probably not accept null as a valid object.